Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture ErrorLevel from batch file
Message
De
27/11/2013 03:14:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/11/2013 00:03:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01588722
Message ID:
01588731
Vues:
43
>When calling a batch file from the RUN command within VFP(7), is there a way to capture the %errorlevel% once returning to the calling VFP program?

You can add a line like this to the end of the batch:
echo %errorlevel% >status.txt
You could then just have
lcExitStatus=filetostr("status.txt")
and you'd have it as a string in lcExitStatus.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform