I need to get the REAL creation date of image or video files within a Windows Script.
I have copied many image and video files from my iPhone device. The problem is the information of file about creation and modified date is related to the copying of these files in my computer, and not the real creation date.
This is my script:
@ ECHO OFF
FOR %%F IN (*.jpg *.heic *.png) DO (
SET "DATEFILEIMAGE=%%~tF"
FOR /f "tokens=1,2,3,4 delims=/ " %%a in ("%%~tF") do (
MKDIR %%c.%%b
MOVE "%%F" %%c.%%b
)
)
This works fine, but the date from file is not the REAL creation date.
If I open the file with mediainfo I can get the REAL creation date of image or video. But can I use the CLI of MediaInfo to get ONLY this information and use it inside my script?