Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read error from Run command
Message
 
 
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:
00721758
Views:
11
You may want to redirect output of DOS commands. See, if this thread Re: DOS HELP with VFP Thread #499218 Message #499234 can help

>Is there a way to launch a DOS command and read any resulting error conditions?
>
>I'm using the lpr command to send a pre-existing file to a printer. I'd like to verify the command properly functioned before marking the file as sent. If the command is executed from the DOS command window on a file that has a lock on it, or is not present, or whatever; then an error message is printed. I'd like to react to that error message.
>
>I've tried using the app_apirun class, but it responds with success no matter if the file exists or not.
>
>Thanks
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform