Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD2.6 & MSDOS ERRORLEVELS
Message
From
15/09/1998 17:16:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
FPD2.6 & MSDOS ERRORLEVELS
Miscellaneous
Thread ID:
00137017
Message ID:
00137017
Views:
63
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
---------------------------------------
Reply
Map
View

Click here to load this message in the networking platform