Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!rna!rocky2!reintom From: reintom@rocky2.UUCP (Tom Reingold) Newsgroups: comp.sys.ibm.pc Subject: Re: .bat files within extra command.com Message-ID: <285@rocky2.UUCP> Date: Fri, 28-Nov-86 11:53:51 EST Article-I.D.: rocky2.285 Posted: Fri Nov 28 11:53:51 1986 Date-Received: Fri, 28-Nov-86 22:36:33 EST References: <10300005@uiucuxe> <2643@gitpyr.gatech.EDU> <2295@mtgzz.UUCP> Organization: Rockefeller Univ.,N.Y.C 10021 Lines: 36 Summary: You haven't really tested your method! [] >>>I am looking for someone who has experience in writing .bat files which run >>>from within other .bat files, [....] > >>The ordinary way to do this is to pass the name of the batch file as a >>parameter to COMMAND.COM. Also, COMMAND.COM must be invoked with the /C >>option so that it will go away after the batch file terminates. >[...] > >I don't get it, what's all the fuss? >Why do you need to invoke COMMAND at all. In my >experience you can just enter the second .BAT file as an ordinary >commmand ??? That only works when the second batch file is the last command in the first batch file. What you don't realize is that the second batch file would not return to the first. This is because memory for batch files, according to my observations (not informed knowledge), is overlayed and not chained. It's unfortunate and stupid but can be overcome with the "command /c batchfilename" solution. . . . . . . . . -- ######################################################################## Tom Reingold -- Rockefeller Univ, 1230 York Av, NY 10021; (212) 570-7709 UUCP: {seismo|philabs|phri|harvard|ihnp4}!cmcl2!rna!rocky2!reintom ARPANET: reintom@rockefeller.arpa <<<<<<<->>>>>> BITNET: REINTOM@ROCKVAX