Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: Executing .BAT files Message-ID: <5257@pt.cs.cmu.edu> Date: 20 Jun 89 15:24:00 GMT References: <4112@merlin.usc.edu> <584@megatek.UUCP> Distribution: na Organization: Carnegie-Mellon University, CS/RI Lines: 35 In article <584@megatek.UUCP> hollen@zeta.megatek.uucp (Dion Hollenbeck) writes: }From article <4112@merlin.usc.edu>, by danking@aludra.usc.edu (Dan King): }> [how do I SPAWN or EXEC a .BAT file] }> }This information is not necessarily accurate but should point you }in the right direction to get the correct information. } }What you should do is to EXEC or SPAWN command.com with, I believe, }the /c switch followed by the name of the EXE or BAT file. Command.com }will then be able to search for the EXE or BAT and either program }load or batch process as appropriate. correct. }I believe, also, that if command.com notes that what you have asked }it to "run" is an EXE, then it will allow the non-resident portion }of itself to be swapped out if necessary to provide memory for your }program to run in. If it notices that you have requested "execution" }of a batch file, it will remain completely resident and execute the }batch file. This is not how it works. The nonresident portion is located at the upper end of memory, and is not protected from overwriting by any executables. Each time that COMMAND.COM regains control, it checks whether its transient portion has been overwritten, and reloads it if necessary. COMMAND regains control after an executable has been run (either .COM or .EXE can overlay the transient portion), or after a line of a batch file has been executed. A batch file can cause the overlaying of the transient portion if it invokes a program that does so. -- {harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school) ARPA: RALF@B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make. FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler BITnet: RALF%B.GP.CS.CMU.EDU@CMUCCVMA -=-=- DISCLAIMER? I claimed something? --