Skip to content

Instantly share code, notes, and snippets.

@vovsky
Last active May 30, 2017 15:26
Show Gist options
  • Save vovsky/2477269327e577c4f67ed0c1f971789d to your computer and use it in GitHub Desktop.
Save vovsky/2477269327e577c4f67ed0c1f971789d to your computer and use it in GitHub Desktop.
exiftool
exiftool '-FileModifyDate<DateTimeOriginal' dir

Use the original date from the meta information to set the same file's filesystem modification date for all images in a directory. (Note that -TagsFromFile @ is assumed if no other -TagsFromFile is specified when redirecting information as in this example.)

exiftool -FileModifyDate+=2:00 -if '$filetype eq "MP4"' .
exiftool '-FileModifyDate<MediaModifyDate' -if '$filetype eq "MP4"' ./
 .\exiftool.exe "-FileName<createDate" -d "%Y%m%d_%H%M%S.%%e" C:\Users\vovsk\Documents\eurotrip\2016-06-06-15Eurotrip2016_Filter\mp4\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment