Author Topic: How to set the last modified file timestamp to EXIF DateTimeOriginal?  (Read 159 times)


  • Jr. Member
  • **
  • Posts: 21
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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17493
    • ExifTool Home Page
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).