>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.