Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!nather From: nather@ut-sally.UUCP (Ed Nather) Newsgroups: comp.sys.ibm.pc Subject: Re: batch files calling batch files Message-ID: <7871@ut-sally.UUCP> Date: Sun, 26-Apr-87 13:15:13 EDT Article-I.D.: ut-sally.7871 Posted: Sun Apr 26 13:15:13 1987 Date-Received: Sun, 26-Apr-87 23:37:58 EDT References: <626@cod.UUCP> <1610013@hpcvlo.HP.COM> Organization: U. Texas CS Dept., Austin, Texas Lines: 23 In article <1610013@hpcvlo.HP.COM>, bill@hpcvlo.HP.COM (Bill Frolik) writes: > > To call another batch file from within a batch file, just invoke another > copy of COMMAND.COM with a /C switch: > > Be aware that since you are invoking a new command interpreter, the called > batch file will live in a new "environment" (i.e., any variables that you > have SET will not exist to the called file, Not true. A copy of the current environment is supplied to the new command interpreter. > and any variables that it SETs > will disappear when control returns to the caller). This is true, unless your program can "set" a new string into the "living environment" rather than the copy. It is tedious but possible. -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU