Can't get formated date in .BAT file. What's wrong ?

Started by Archive, May 12, 2010, 08:54:24 AM

Previous topic - Next topic

Archive

[Originally posted by raoulj on 2008-08-25 06:03:08-07]

Hello,
I'm a newbie using EXIFTool for windows 7.39 (exe).
I want to batch rename a set of Canon CR2 files to a directory structure like
\$model
   \$createdate "%Y%m%d"
         \files with their original names

I first try to format a date and it doesn't work.
exiftool -r -DateTimeOriginal -d "%%Y%%m%%d" dcim\%1
(where %1 is the sub directory name, usually "100eos1d")
I tried with and without "" around -d, with and without space between -d and format, and with several options regarding the number of "%"
In some cases, it tells me "no file", in the given case, it shows DateTimeOriginal but withuot the format.

What's wrong ?
Can someone help me here ?

Next step will be the rename operation itself...

Thanks

Raoul

Archive

[Originally posted by exiftool on 2008-08-25 10:44:02-07]

Hi Raoul,

This is my fault.  The -p option was broken in
the exe version of 7.39.  Try downloading 7.40.

- Phil

Archive

[Originally posted by raoulj on 2008-08-25 17:28:14-07]

That's indeed much better !
Thanks.

Raoul