Append createdate to beginning of filename mistakenly repeats extension

Started by stevebtexif, June 16, 2018, 12:41:37 PM

Previous topic - Next topic

stevebtexif

When I execute:
exiftool  "-filename<${Exif:CreateDate}%f.%e" -d %y%m%d_%H%M%S%%-c.%%le -ext JPG -r -P DIR
it renames "IMG.JPG" to "180425_125618.jpgIMG.JPG"

But i would like
"IMG.JPG" to be renamed"180425_125618_IMG.JPG" without repeating the "jpg" extension. 

Ideas?  Thank you!

StarGeek

%e indicates the extension and you have it listed twice.
"-filename<${Exif:CreateDate}%f.%e" -d %y%m%d_%H%M%S%%-c.%%le

You need to remove one and the %%le is probably the one you want to remove. 
"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