Can anyone tell me how to return a value to DOS to allow conditional execution in the batch program. If a user pushed the 'GO' button in my app, I want the DOS program to QUIT. If a user pushed the 'EXIT' button, I want batch file continue.
My DOS batch file reads something like:
ECHO OFF
CONTROL.EXE <----Foxpro program
IF ERRORLEVEL 0 GOTO LEVEL0
IF ERRORLEVEL 1 GOTO LEVEL1
:LEVEL0
ECHO ERRORLVL 0
GOTO END
:LEVEL1
ECHO ERRORLVL 1
:END
I hope this is clear enough.
Thanks
---------------------------------------
Keith Smith
---------------------------------------