Xref: utzoo comp.sys.ibm.pc:23756 comp.lang.c:15787 Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ukma!cwjcc!mailrus!cornell!uw-beaver!tikal!ole!ray From: ray@ole.UUCP (Ray Berry) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: system() always returns 0? Keywords: MSC5. speaking of ERRORLEVEL... command.com must stash away the return Message-ID: <534@ole.UUCP> Date: 25 Jan 89 17:42:33 GMT References: <782@hawkmoon.MN.ORG> <2439@nunki.usc.edu> <646@sactoh0.UUCP> Reply-To: ray@ole.UUCP (Ray Berry) Distribution: na Organization: Seattle Silicon Corporation, Bellevue, WA. Lines: 13 value from the last program it executed. There are times when it would be handy to be able to interrogate that number from the command line. Does anyone know a way to do this? The location of the variable? Obviously a short shell could be written in c to execute it and print the value, but it seems as though it the ERRORLEVEL variable must be present somewhere in memory. -- Ray Berry KB7HT uucp: ...{uw-beaver|uiucuxc}tikal!ole!ray CS: 73407,3152 Seattle Silicon Corp. 3075 112th Ave NE. Bellevue WA 98004 (206) 828 4422