ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: eleroy on August 18, 2014, 01:11:25 PM

Title: problem with -if expression in Windows command line
Post by: eleroy on August 18, 2014, 01:11:25 PM
trying something simple under Windows Command line (not batch)

exiftool -r -ext JPG -if '$MakerNotes:BracketMode eq "AEB"' -MakerNotes:BracketMode -AEBBracketValue .

I get a
File not found eq
File not found AEB'

and nothing.


i just now reversed the quotes and use
exiftool -r -ext JPG -if "$MakerNotes:BracketMode eq 'AEB'" -MakerNotes:BracketMode -AEBBracketValue .

and it seems to work...
odd?

Title: Re: problem with -if expression in Windows command line
Post by: Phil Harvey on August 18, 2014, 01:15:25 PM
The Windows cmd shell accepts double quotes ("), not single quotes (').  This is a constant source of confusion.

- Phil