Author Topic: I can't rename using -filename<CreateDate - SOLVED  (Read 1257 times)

Daniel L S

  • Newbie
  • *
  • Posts: 4
I can't rename using -filename<CreateDate - SOLVED
« 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


« Last Edit: March 07, 2016, 06:56:30 PM by Daniel L S »

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3765
Re: I can't rename using -filename<CreateDate
« Reply #1 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 *
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Daniel L S

  • Newbie
  • *
  • Posts: 4
Re: I can't rename using -filename<CreateDate
« Reply #2 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