nts0699@dsacg1.UUCP (Gene McManus) (06/10/88)
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