Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!seismo!husc6!bu-cs!bucsb.bu.edu!madd From: madd@bucsb.bu.edu.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS enviroment size Message-ID: <798@bucsb.bu.edu.UUCP> Date: Sun, 1-Mar-87 13:24:51 EST Article-I.D.: bucsb.798 Posted: Sun Mar 1 13:24:51 1987 Date-Received: Mon, 2-Mar-87 20:43:46 EST References: <2091@ncoast.UUCP> <409500003@prism> <2986@iuvax.UUCP> <2771@sdcsvax.UCSD.EDU> <119@homxb.UUCP> <2778@sdcsvax.UCSD.EDU> Reply-To: madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) Organization: ODO (Organization for the Disorganization of Organization) Lines: 32 In article <2778@sdcsvax.UCSD.EDU> holtz@beowulf.ucsd.edu (Fred Holtz) writes: >In article <119@homxb.UUCP> singhal@homxb.UUCP (S.SINGHAL) writes: >>By using the following lines, you can cratea a PATH as long as you like >>(subject to environment size limitations) : >> >>PATH=c:\;c:\this\that;c:\work\bin >>PATH=%PATH%;c:\this\also;c:\ramres >>PATH=%PATH%;c:\thats\all >> >>(you get the idea ?) >> >>---Sharad Singhal > >I tried this under PC-DOS 3.1 with no luck. I like the construct; what >DOS are you using to achieve environment variable substitution? 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. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - Jim Frost * The Madd Hacker - UUCP: ..!harvard!bu-cs!bucsb!madd | ARPANET: madd@bucsb.bu.edu CSNET: madd%bucsb@bu-cs | BITNET: cscc71c@bostonu -------------------------------+---+------------------------------------ "Oh beer, oh beer." -- Me | [=(BEER) <- Bud the Beer (cheers!)