News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

syntax of %f parameter

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

Previous topic - Next topic

Archive

[Originally posted by igor77 on 2009-02-23 09:16:02-08]

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&gt"%f.jpg" *.cr2

or without commas

exiftool -k -b -ThumbnailImage&gt%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&gt1.jpg 1.cr2

gives me correct thumb with name "1.jpg". But it works only for one file.

Command

exiftool -k -b "-ThumbnailImage&gt%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

Archive

[Originally posted by exiftool on 2009-02-23 14:04:14-08]

Hi Igor,

From the description of -w in the application documentation:

Code:
   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

Archive

[Originally posted by igor77 on 2009-02-24 05:41:38-08]

Hi Phil,

Sorry, I've missed this phrase in documentation!

Thanks for answer and your patience.

Igor