Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get error from DOS program?
Message
 
To
04/01/2000 10:10:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00312390
Message ID:
00312433
Views:
24
Hi John,

> Can you show me an example?

Basically it looks like this:
@ECHO OFF
%2 %3 %4 %5 %6 %7 %8 %9
IF ERRORLEVEL==255 GOTO LEV255
REM ...
IF ERRORLEVEL==2 GOTO LEV2
IF ERRORLEVEL==1 GOTO LEV1
ECHO 0 >%1\fox\apo\suche\err.lvl
GOTO ende
:LEV255
ECHO 255 >%1\fox\apo\suche\err.lvl
GOTO ende
REM ...
:LEV2
ECHO 2 >%1\fox\apo\suche\err.lvl
GOTO ende
:LEV1
ECHO 1 >%1\fox\apo\suche\err.lvl
GOTO ende
:ende
The Err.Lvl file is read afterwards using FOPEN() and FGETS() in FoxPro.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform