[System] FileModifyDate

Started by LitoFrame, November 26, 2020, 10:23:20 AM

Previous topic - Next topic

LitoFrame

Hello,
when I shift dates with exiftool "-AllDates-=0:0:0 1:0:0" image.jpg command in terminal the FileModifyDate in System section metadata updated to the current date. Adobe Bridge uses this date for Date File Modified.
Is it possible to shift this FileModifyDate with the necessary amount instead of update it to the current date?
Thanks!

Phil Harvey

Sure.  Add this to your command: "-FileModifyDate-=0:0:0 1:0:0"

Note that this is simpler, and does the same thing: -alldates-=1 -FileModifyDate-=1

- 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 ($).

StarGeek

Quote from: LitoFrame on November 26, 2020, 10:23:20 AMIs it possible to shift this FileModifyDate with the necessary amount instead of update it to the current date?

If you wish to keep the FileModifyDate unaltered from the current value, you can add the -P (-preserve) option.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

LitoFrame

Great, thank you!

I prefer the first solution, when the FileModifyDate also changes with the same amount like all the other dates.

Thanks for your help!:)