I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-02-23 09:16:02-08 by igor77
syntax of %f parameter
Hi!

Dear Phil!
Please teach me to use your program in BAT file in Windows.
I can't use for instance %f parameter.
I've tried to use it in many your examples, but Windows allways sees "f.jpg" in parameter "%f.jpg".
For example in command:
exiftool -k -b -ThumbnailImage>"%f.jpg" *.cr2
or without commas
exiftool -k -b -ThumbnailImage>%f.jpg *.cr2
Exiftool gives me one file "f.jpg" which contains all thumbs from CR2 files from active folder. I've decided so because the size of this file is seems to sum of all thumbs.
Command
exiftool -k -b -ThumbnailImage>1.jpg 1.cr2
gives me correct thumb with name "1.jpg". But it works only for one file.
Command
exiftool -k -b "-ThumbnailImage>%f.jpg" *.cr2
gives error: Warning: Tag 'f.jpg' does not exist - IMG_1593.CR2
I've tried different variations but can't find the correct one.
May be you would be so kind to help me.
Thanks in advance,

Igor
Direct Responses: 10055 | Write a response
Posted on 2009-02-23 14:04:14-08 by exiftool in response to 10053
Re: syntax of %f parameter
Hi Igor,

From the description of -w in the application documentation:

Note: In a Windows BAT file the '%' character is represented by "%%", so an argument like "%d%f.txt" is written as "%%d%%f.txt".

- Phil
Direct Responses: 10060 | Write a response
Posted on 2009-02-24 05:41:38-08 by igor77 in response to 10055
Re: syntax of %f parameter
Hi Phil,

Sorry, I've missed this phrase in documentation!
Thanks for answer and your patience.

Igor
Direct Responses: Write a response