Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!houxm!mhuxt!mhuxm!mhuxh!mhuxo!ulysses!faline!thumper!tr From: tr@thumper.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS enviroment size Message-ID: <441@thumper.UUCP> Date: Mon, 2-Mar-87 12:57:25 EST Article-I.D.: thumper.441 Posted: Mon Mar 2 12:57:25 1987 Date-Received: Wed, 4-Mar-87 20:37:27 EST References: <2091@ncoast.UUCP> <409500003@prism> <2986@iuvax.UUCP> <2789@sdcsvax.UCSD.EDU> Lines: 50 In article <2789@sdcsvax.UCSD.EDU>, holtz@beowulf.ucsd.edu (Fred Holtz) writes: > > [...] > > Thanx to all that responded telling me to use a .bat file. Now a question: > Why does this only work in a batch file? Also, the SECOND substitution > I try fails (about 30% of the time). I use the following addp.bat file: > path=%PATH%;%1 > > [...] > > Fred Holtz > holtz@sdcsvax.UCSD.EDU I suppose that you have tried this two different ways and have not noticed. There are two ways to set the path. One is with the PATH command and the other is with the SET command. PATH is used as: PATH=\WHATEVER;... whereas SET is used as: SET PATH=\WHATEVER;... I suspect that batch files can interpret the percent signs around your variables during a SET command but not a PATH command. I have read that the PATH command is provided for compatibility with DOS 2.x since the SET command does the same and more. I have also read that the PATH command is "better" or "safer" than the SET command. Does anyone know why this would be? -- Tom Reingold INTERNET: tr@bellcore.com -------- UUCP: ---- decvax\ ucbvax\ \ lll-lcc\ ihnp4!mhuxt!ulysses!faline!flash!tr seismo!rutgers!mit-eddie!allegra/ / watmath!clyde!bellcore/ -- Tom Reingold INTERNET: tr@bellcore.com UUCP: ..!{decvax,ulysses,bellcore}!faline!flash!tr