Processing exit commands from Dos

I have various C programs that run under dos that I want to run from a VP app and then trap the error level and process accordingly.  The C programs use the "exit" command to set the errorlevel rather than an API such as exitprocess.  This is beyond my control.  

Can anybody help me with the best way to handle this?

Who is Participating?
viktornetConnect With a Mentor Commented:
try using Createprocess() to run the program and then GetExitCode() to get the exit code...


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.