Problem:
Running an application from within a .bat file, and would like a way to check the cond code.
Resolution:
An example script file:
@echo off
rem - sample batch files using selection list
:begin
cls
myapplication
if errorlevel == 3200 goto 3200
if errorlevel == 1600 goto 1600
if errorlevel == 2 goto two
if errorlevel == 1 goto one
goto end
:3200
echo you have selected 3200
goto end
:1600
echo you have selected 1600
goto end
:two
echo you have selected two
goto end
:one
echo you have selected one
:end
rem next line will end current window
rem exit