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

pstein

  • 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
Peter

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16706
    • 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 ($).