I need help with my if command in my file converter. I keep changing the command a bit, but it just returns with
(exit) was unexpected at this time.
And then it closes command prompt. The if command is:
if %success% == 0 (exit) else (goto converter)
Please help.
ECHO OFFstatements so that the processing will be shown. At the end of a .bat script, you probably wantEXIT /B. SeeEXIT /?.GOTO :EOFinstead ofexit. EOF is an implicit label at the very end of any batch file.