Skip to content
Discussion options

You must be logged in to vote

Sorry for taking so long. After getting back from my convention, I was hit by a case of Con Crud.

To make your command work, you want to use the DateFmt helper function when checking to see if the filename already matches. The -d option is used for the actual renaming part of the command.

exiftool -d "%Y-%m-%d %H-%M-%S%%-c %%f.%%e" -if "$Filename!~${DateTimeOriginal;DateFmt('%Y-%m-%d %H-%M-%S')}" "-TestName<DateTimeOriginal" /path/to/files/

Example. There are two files that already match the time stamp pattern and one that doesn't, but has the same time stamp as one of the other files. So there are two files that fail the -if option because they already have the correct time stamp in the …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@C-Denninger
Comment options

Comment options

You must be logged in to vote
1 reply
@C-Denninger
Comment options

Answer selected by C-Denninger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants