change exit status to 0 even with all IF failed

Started by Harald, January 16, 2018, 12:52:59 PM

Previous topic - Next topic

Harald


StarGeek

Quote from: Phil Harvey on January 24, 2018, 12:10:18 PM
I think at the same time I will set the exit status to 2 if all files failed the -if condition.

And now I know why my BAT files started claiming problems with all my files.  I was checking if condition responses with %errorlevel%==1.  At least it's an easy fix to just say greater than or equal to 1.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Ah, sorry.  I was hoping that it wouldn't affect too many people. :(

- 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 ($).