Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!ames!ucbcad!ucbvax!decvax!tektronix!reed!psu-cs!omepd!perry From: perry@omepd.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS enviroment size Message-ID: <474@omepd> Date: Mon, 2-Mar-87 15:40:09 EST Article-I.D.: omepd.474 Posted: Mon Mar 2 15:40:09 1987 Date-Received: Wed, 4-Mar-87 20:01:28 EST References: <2091@ncoast.UUCP> <409500003@prism> <2986@iuvax.UUCP> <2771@sdcsvax.UCSD.EDU> <119@homxb.UUCP> Sender: news@omepd Reply-To: perry@inteloa.intel.com (Perry The Cynic) Organization: Intel Corp., Hillsboro Lines: 22 Summary: Don't do it this way 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 ?) Yes, that's the theory. Unfortunately, COMMAND.COM uses a 128-byte internal line buffer even during batch processing. COMMAND does NOT check for overflow during %argument% expansion. Trying to get a line longer than 128 bytes will overwrite some part of COMMAND and (probably) crash your machine. Sorry, no luck this way. P.S.: Checked and tried on MSDOS 3.1. Chances are it doesn't work on other versions either. ------------------------------------------------------------------------ << Perry The Cynic >> ...!tektronix!ogcvax!omepd!inteloa!perry ...!verdix!omepd!inteloa!perry (Peter Kiehtreiber) -or try- perry@inteloa.intel.com