Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!killer!osu-cis!bcd-dyn!dsacg1!nts0699 From: nts0699@dsacg1.UUCP (Gene McManus) Newsgroups: comp.lang.c Subject: Re: spawn, MSC Message-ID: <467@dsacg1.UUCP> Date: 10 Jun 88 13:55:24 GMT References: <1113@cod.NOSC.MIL> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 30 From article <1113@cod.NOSC.MIL>, by murphys@cod.NOSC.MIL (Steven P. Murphy): > > I am having problems getting MSC V5 to spawn(vp) an other command.com shell. > What I'm trying to do is run a batch file with some interrupts changed, > I already hooked the interrupts but I can't get spawn to build another shell. > > Any help would be greatly appreciated > > Murph > > ------------------------ > > S. P. Murphy > Internet: murphys@cod.nosc.mil UUCP: {ucbvax,hplabs}!sdcsvax!nosc!murphys I don't have the manual right in front of me, but if memory serves, spawn() can only be used to start a .com or .exe. It should work to start command.com, if that's what sent to spawn() as the .com file. To start a .bat file, use system("xxxx"); . The system() call invokes another command.com shell. Regards, Gene Gene McManus @ Defense Logistics Agency Systems Automation Center, Columbus, OH 43215 (614) 238-9403, Autovon 850- UUCP: {uunet!gould,cbosgd!osu-cis}!dsacg1!gmcmanus The views expressed are my own, not those of The Agency, or Dept. of Defense