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. 
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).