Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read error from Run command
Message
From
12/11/2002 14:08:41
 
 
To
12/11/2002 14:04:31
Vicki Miles
Vlm International, Inc.
Mishawaka, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00721753
Message ID:
00721756
Views:
17
>Is there a way to launch a DOS command and read any resulting error conditions?
>

Yes - use my API_APPRUN class to launch the executable, and it will allow you to retrieve the termination code. It's available in the download section. API_APPRUN returns success if it runs, but lets you retrieve the return code at your leisure.

If the output of lpr is not a termination code, but is a string written to the console, you'll need to pipe the output to a file and parse the result.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform