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

Q

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

✍: Guest

A

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.

2015-03-16, 1182👍, 0💬