Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get errorlevel from run command
Message
 
 
À
31/07/2008 10:45:09
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01335530
Message ID:
01335546
Vues:
13
See Re: DOS program works differently within VFP Thread #1242242 Message #1242302

Took me a while to find this thread.

>Hello Everybody
>
>From my application i start a script on an linux server.
>
>RUN /N plink.exe -l root -pw xyz 127.1.1.110 "sh /root/test.sh E"
>
>Everything works as expected.
>
>After running the command from cmd.exe in windows, i can do: echo %ERRORLEVEL%
>to get some information obout the success of the script.(0 = ok, 4 = error for example)
>
>I don't know, how to get the returned errorlevel in my foxpro(VFP 9.2) programm.
>
>Any help welcomed.
>Best regards
>Albert
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform