Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get errorlevel from run command
Message
 
 
To
31/07/2008 10:45:09
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01335530
Message ID:
01335536
Views:
21
This message has been marked as the solution to the initial question of the thread.
Albert,

See Re: Return %ERRORLEVEL% from Run command? Message #1075941

>
>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.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform