Rename files

Started by tps800, July 03, 2018, 07:25:33 PM

Previous topic - Next topic

tps800

Hi!

with

exiftool '-filename<CreateDate' -d '%Y%m%d-%H%M%S%%-c_tps.%%le' -ext jpg -ext JPG .

I can rename my photos from anything to for example "20180601-110322_tps.jpg". And if there are more than one with the very same date and time they are numbered:

20180601-110322_tps.jpg
20180601-110322-001_tps.jpg
20180601-110322-002_tps.jpg
20180601-110322-003_tps.jpg


How could i get something like:

20180601-110322-000_tps.jpg
20180601-110322-001_tps.jpg
20180601-110322-002_tps.jpg
20180601-110322-003_tps.jpg


with

20180602-082001-000_tps.jpg

regardless if there is only one or various photos with the same date and time?

StarGeek

Change %%-c to %%-.3c

Take a look at the -w option for the docs on %c (you'll have to scroll down a bit).
"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

tps800

Yes, that was it: does what I wanted it to do!