Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!unmvax!ncar!noao!arizona!naucse!wew From: wew@naucse.UUCP (Bill Wilson) Newsgroups: comp.sys.ibm.pc Subject: Re: Executing .BAT files Message-ID: <1501@naucse.UUCP> Date: 19 Jun 89 22:18:53 GMT References: <4112@merlin.usc.edu> Distribution: na Organization: Northern Arizona University, Flagstaff, AZ Lines: 15 From article <4112@merlin.usc.edu>, by danking@aludra.usc.edu (Dan King): > My problem is that I can't seem to be able to use either the EXEC or > SPAWN calls to execute a .BAT file. A perusal of the TC documentation > reveals that the EXEC and SPAWN calls will automatically search for > .EXE files, but don't seem to be able to deal with .BAT files at all. > You may try using the system function instead of the others. The system command loads another copy of command.com and executes the commands that you give as the parameter. Hope this helps! -- Bill Wilson (Bitnet: ucc2wew@nauvm) Northern AZ Univ Flagstaff, AZ 86011 {Let sleeping dragons lie......}