How to set the last modified file timestamp to EXIF DateTimeOriginal?

Started by pstein, July 10, 2020, 10:13:01 AM

Previous topic - Next topic

pstein

I want to adjust the windows last modified date/timestamp of all *.jpg image files in a directory tree (e.g. with topnode D:\photos\trip123\) to their EXIF header value DateTimeOriginal.

How can I achieve this?

Thank you
Peter

Phil Harvey

Hi Peter,

Try this:

exiftool "-filemodifydate<datetimeoriginal" -ext jpg -r D:\photos\trip123\

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).