problem with -if expression in Windows command line

Started by eleroy, August 18, 2014, 01:11:25 PM

Previous topic - Next topic

eleroy

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?


Phil Harvey

The Windows cmd shell accepts double quotes ("), not single quotes (').  This is a constant source of confusion.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).