ExifTool Forum

ExifTool => Newbies => Topic started by: stevebtexif on June 16, 2018, 12:41:37 PM

Title: Append createdate to beginning of filename mistakenly repeats extension
Post by: stevebtexif on June 16, 2018, 12:41:37 PM
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!
Title: Re: Append createdate to beginning of filename mistakenly repeats extension
Post by: StarGeek on June 16, 2018, 01:18:03 PM
%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. 
Title: Re: Append createdate to beginning of filename mistakenly repeats extension
Post by: stevebtexif on June 17, 2018, 01:07:17 AM
Thank you! Works perfectly now.