ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ennogrue on August 14, 2011, 07:54:29 PM

Title: concatenation of static text -from bat file
Post by: ennogrue on August 14, 2011, 07:54:29 PM
Hello,
I use
exiftool.exe -d "AAAA-%Y-%m-%d--%H-%M-%S%%-c.%%e" "-filename<datetimeoriginal" *.AVI
to get this output:
AAAA-2011-07-31--19-50-21.AVI
in Windows Vista.
From the command line this works fine,
but from a bat file I get this:
AAAA-m-H-S.AVI
I experimented a lot but couldn't get it to work.
Regards,
Enno
Title: Re: concatenation of static text -from bat file
Post by: Phil Harvey on August 15, 2011, 07:47:33 AM
Hi Enno,

The "%" character is special in a Windows .bat file.  You must replace each % with %% when you use a command in a .bat file.

- Phil
Title: Re: concatenation of static text -from bat file
Post by: ennogrue on August 18, 2011, 03:48:27 PM
Hi Phil,
cool, it works!
Thanks a lot, you are a guru!
Enno