ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:02 AM

Title: windows exiftool -w option
Post by: Archive on May 12, 2010, 08:54:02 AM
[Originally posted by daveh on 2007-03-29 14:23:18-07]

Hi,
I'm new to exiftool and am just setting up some batch jobs to review specific jpeg tags.
following the examples for -w I'm using the following command but get an error on the console output file;
I'm probably misunderstanding the options but can't see where I've gone wrong.

any help much appreciated

command:
exiftool -DateTimeOriginal -ModifyDate -CreateDate -Keywords "C:\ExifTestImages\Cats001.JPG" -w DIR\%d%f.txt

I'm expecting to create a sub directory DIR with a .txt file for the output for each file (I've limited this command to a single file in order to try resolve my problem)

output from command execution:
Error creating C:/ExifTestImages/Cats001DIR/f.txt

I suspect the % signs in the input are being mis-interpreted somewhere
Title: Re: windows exiftool -w option
Post by: Archive on May 12, 2010, 08:54:02 AM
[Originally posted by exiftool on 2007-03-29 15:33:55-07]

Hi,

This is documented in various places, but I should probably add a note to
the -w documentation too:

The % character has a special meaning in windows batch files, and you need
to use "%%" in a .bat file to represent the % character.  ie)

Code:
exiftool -DateTimeOriginal -ModifyDate -CreateDate -Keywords IMAGE.JPG -w DIR\%%d%%f.txt

- Phil
Title: Re: windows exiftool -w option
Post by: Archive on May 12, 2010, 08:54:02 AM
[Originally posted by daveh on 2007-03-29 16:03:36-07]

Phil,
thanks for the quick response. I should have seen that.

it's done the trick

regards

Dave