Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!sdcsvax!beowulf!holtz From: holtz@beowulf.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS enviroment size Message-ID: <2789@sdcsvax.UCSD.EDU> Date: Mon, 2-Mar-87 03:29:55 EST Article-I.D.: sdcsvax.2789 Posted: Mon Mar 2 03:29:55 1987 Date-Received: Tue, 3-Mar-87 00:33:57 EST References: <2091@ncoast.UUCP> <409500003@prism> <2986@iuvax.UUCP> Sender: nobody@sdcsvax.UCSD.EDU Reply-To: holtz@beowulf.UUCP (Fred Holtz) Organization: EE/CS Dept. U.C. San Diego Lines: 23 In article <798@bucsb.bu.edu.UUCP> madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) writes: > >He forgot to tell you that this must be done within a batch file. DOS >is very stupid. Whomever decided to only do environment substitutions >and the like from batch files (and not the keyboard) should have been >shot, but we have to live with it. > >I believe it will work if you throw it into a .BAT file, though I have >yet to try it. You might also have length limitations imposed by DOS's >COMMAND.COM interpreter on environment substitutions, but I was unable >to find information about one in the Tech. Ref. manual. > 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 Any explanations? Please mail as I do not wish to tie up the net with this any further... Fred Holtz holtz@sdcsvax.UCSD.EDU