[Originally posted by jgb60 on 2008-08-30 13:13:41-07]
I am using version 7.41 on a Windows XP Home based system. If I execute "exiftool -shutterspeed -make ." in a directory containing only 2 Canon JPG's, it reports for each file the shutterspeed ("1/8") and make ("Canon") and then "1 directories scanned" and "2 image files read." If I execute the first "-if" example from the documentation, "exiftool -shutterspeed -if '$make eq "Canon"' .", it reports "1 directories scanned", "4 files failed condition" and "0 image files read." If I execute "exiftool -shutterspeed -if "$make eq "Canon"" .", it reports "1 directories scanned", "2 files failed condition" and "0 image files read." I do not understand but can accept that I need to replace the unix-like single quotes with double quotes but why does the expression always fail?
Thanks,
Drew
[Originally posted by exiftool on 2008-08-30 16:23:23-07]Hi Drew,
In windows, you need to use double quotes around command-line arguments.
The application documentation that comes with this version (run exiftool
with no arguments) has the following example:
exiftool -shutterspeed -if "$make eq 'Canon'" dir
which may help point you in the right direction.
Let me know if you are still having problems.
- Phil
[Originally posted by jgb60 on 2008-08-30 18:37:55-07]
Thanks, the syntax you gave works. I saw in the documenation that I needed to replace the single quotes around arguments with double quotes in Windows and I tried that as I said in my original message. What I did not know was that I needed to replace the double quotes around the constant, "Canon", with single quotes. Thanks Again, Drew