Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!ames!ucbcad!ucbvax!decvax!decwrl!pyramid!voder!apple!lenoil From: lenoil@apple.UUCP (Robert Lenoil) Newsgroups: comp.sys.ibm.pc Subject: Re: Removing command.com Message-ID: <7174@apple.UUCP> Date: 13 Jan 88 00:40:24 GMT References: <846@xn.LL.MIT.EDU> Reply-To: lenoil@apple.UUCP (Robert Lenoil) Organization: Apple Computer Inc., Cupertino, USA Lines: 11 Keywords: MS-DOS Command Shell In article <846@xn.LL.MIT.EDU> singer@XN.LL.MIT.EDU (Matthew R. Singer) writes: >I have an application which requires as much memory as it can get >its hands on (640K machine. Not possible to use EMS) which also >using MSC's (5.0) system call to run things from within the program. Your problem is using the system() function; it works by spawning a copy of command.com, passing it the command line you give. You'll save the memory that command.com takes up by bypassing system() and directly using the spawn() family of functions. Robert Lenoil