ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Daniel L S on March 07, 2016, 05:17:15 PM

Title: I can't rename using -filename<CreateDate - SOLVED
Post by: Daniel L S on March 07, 2016, 05:17:15 PM
I try rename filenames to "date time" by:
exiftool -d %Y%m%d_%H%M%%-c.%%e "-filename<CreateDate" -ext jpg *

When I run in folder with this files: DSC04921.JPG, DSC04926.JPG, DSC04927.JPG
I end up with this file: mHe, DSC04926.JPG, DSC04927.JPG
It seams problem with date?

if I run: exiftool -a -G1 -s -time:all -ext jpg *
CreateDate looks fine, it shows [ExifIFD] CrateDate: 2015:01:09 14:25:33

I use "Windows Executable: exiftool-10.12.zip (5.0 MB)" on Win7


Title: Re: I can't rename using -filename<CreateDate
Post by: StarGeek on March 07, 2016, 05:50:36 PM
Is it in a batch file?  If so, all percent signs need to be doubled:
exiftool -d %%Y%%m%%d_%%H%%M%%%%-c.%%%%e "-filename<CreateDate" -ext jpg *
Title: Re: I can't rename using -filename<CreateDate
Post by: Daniel L S on March 07, 2016, 06:55:22 PM
SOLVED - THANK YOU!!!!
You been to very big help for me!
I have spent hours searching try to read and find out what was wrong!!!!   ;D ;D ;D ;D
I very happy!!! Big thank you!!!!  ::) 8) ;D ;D