ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: simonmcnair on January 08, 2024, 07:44:25 AM

Title: inconsistent results ?
Post by: simonmcnair on January 08, 2024, 07:44:25 AM
I can't see why the second command succeeds, whilst the first fails.  They are all jpg files.

Ideas please ?

exiftool -if "defined $XMP:LastKeywordXMP" -XMP:LastKeywordXMP= -overwrite_original -P -r -ext jpg "Z:\Pics\"
    1 directories scanned
  46 files failed condition
    0 image files read
exiftool -if "defined $XMP:LastKeywordXMP" -XMP:LastKeywordXMP= -overwrite_original -P -r -ext jpg "Z:\Pics\*.jpg"
  46 image files updated
Title: Re: inconsistent results ?
Post by: Phil Harvey on January 08, 2024, 11:40:58 AM
I seem to remember something in Windows where a trailing backslash messes with the closing quote, but I don't know how this would result in the symptoms you are seeing.  Anyway, try "Z:\Pics" instead of "Z:\Pics\" to see if this does anything.

- Phil
Title: Re: inconsistent results ?
Post by: StarGeek on January 08, 2024, 04:25:23 PM
That is correct. The backslash is escaping the double quote. Either remove the trailing slash "Z:\Pics" or double it "Z:\Pics\\"