Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!netnews.upenn.edu!eniac.seas.upenn.edu!jes From: jes@eniac.seas.upenn.edu (Joe Smith) Newsgroups: comp.sys.ibm.pc Subject: Re: MKS Toolkit Question Keywords: MKS with MSC Message-ID: <6139@netnews.upenn.edu> Date: 11 Nov 88 16:38:22 GMT References: <4994@whuts.UUCP> <7501@dasys1.UUCP> <546@mks.UUCP> Sender: news@netnews.upenn.edu Reply-To: jes@eniac.seas.upenn.edu.UUCP (Joe Smith) Organization: University of Pennsylvania Lines: 34 In article <546@mks.UUCP> wheels@mks.UUCP (Gerry Wheeler) writes: >Microsoft's own system() library function fails on this count. If you >write a program in Microsoft C using the system() call, it calls >command.com with the "/c" option without checking the current switch >character. > But there is a fix for this of course. Extract the system.obj from the library. Use debug to patch the object file, change to /c to a -c which command.com will accept (actually require under DOS 3.1) and then replace the system() library function with the patched version. Then you have a functional system() with a -c. Frank Kolakowski ____________________________________________________________________________ |c/o jes@eniac.seas.upenn.edu || Univ. of Penna. | |kolakowski%c.chem.upenn.edu@relay.upenn.edu || Dept of Chemistry | |bcooperman.kolakowski@bionet-20.arpa || 231 South 34th St. | |AT&T: 1-215-898-2927 || Phila, PA 19104 | ============================================================================= Joe Smith jes@eniac.seas.upenn.edu University of Pennsylvania Department of Chemistry 231 S. 34th Street Philadelphia, PA 19104 (215) 898-4797