


The quoting for this command assumes you're using CMD. In this case, any additional copies will have an UnderscoreNumber added to the filename.Įxiftool -d "%Y:%m:%d %H:%M:%S" -r -if "$FileModifyDate gt $DateTimeOriginal" -Filename=/path/to/modified/%f%+c.%e /path/to/source If you need to deal with filename collisions, you can add a copy number to any additional files by switching from -Directory to -Filename and adding some percent tokens which are detailed in the -w ( -TextOut) option. 2021:03:26 12:00:00, and that would cause FileModifyDate to be greater than DateTimeOriginal if the time stamps were otherwise identical. The -d ( -dateFormat) option is needed because the FileModifyDate will always include the time zone of the computer, e.g. If so, it will move it to /path/to/modified/

This checks the FileModifyDate to see if it is greater than (string comparison) the DateTimeOriginal. Exiftool -d "%Y:%m:%d %H:%M:%S" -r -if "$FileModifyDate gt $DateTimeOriginal" -directory=/path/to/modified/ /path/to/source
