Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!att!mtuxo!mtgzz!drutx!druhi!deln From: deln@druhi.ATT.COM (SloaneN) Newsgroups: comp.sys.ibm.pc Subject: HELP: MSC system call Message-ID: <4267@druhi.ATT.COM> Date: 24 May 89 15:25:04 GMT Distribution: comp Organization: AT&T, Denver, CO Lines: 14 I'm having a problem with the return code from system(). What appears to happen is that the return code (as the manual states) indicates whether command.com could successfully execute the command or not. How do I get the exit code of the spawned command? eg. exit_code= system( "cl -E ......" ); if "cl" fails, I still get a zero return code because the "system" command successfully spawned "cl". What I want is the exit code from "cl". Thanks in advance, Nikki