Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get error from DOS program?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00312390
Message ID:
00312433
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform