Interview Questions

How do I get an accurate error status return from system on MS-DOS?

C Interview Questions and Answers


(Continued from previous question...)

How do I get an accurate error status return from system on MS-DOS?

You can't; COMMAND.COM doesn't tend to provide one. If you don't need COMMAND.COM's services (i.e. if you're just trying to invoke a simple program, without I/O redirection and such) try one of the spawn routines, instead.

(Continued on next question...)

Other Interview Questions