Code: Select all
mogrify.exe -format jpg "%1"
if not %ERRORLEVEL%==0 goto :BAD_FILE Code: Select all
mogrify.exe -format jpg "%1"
if not %ERRORLEVEL%==0 goto :BAD_FILE That's not how to do it. I suggest you read up on Windows BAT scripts. Try:wallywalters wrote:if not %ERRORLEVEL%==0
Code: Select all
if ERRORLEVEL 1Users browsing this forum: Bing [Bot], Semrush [Bot] and 64 guests