I have a .BAT program that for some reason, does not execute the commands like I expected. The code:
IF %3== x GOTO x
IF %3== y GOTO y
IF %3== z GOTO z
GOTO ERRORMSG
:x
IF %4== BAI2CD
del Cx
COPY %2
CALL prog1
goto end
:y
IF %4== BAI2PD
del C:y
COPY %2
CALL prog
goto end
IF %4== BAI2XPD
del C:y
COPY %2
CALL prog
goto end
GOTO ERRORMSG
%3 is y but %4 is not BAI2PD but it is BAI2XPD but the program always goes to the errmsg.
Thanks,
Chris