General information
Category:
Coding, syntax & commands
This may help to redirect output to the file:
run ... > c:\error.log
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only