sword@vu-vlsi.Villanova.EDU (Ronin) (01/09/89)
[Please forgive me if this topic has already been discussed] I'm having a few problems setting up my pathnames properly. I've got a long list of pathnames (about 240+ characters total) which I'd like set up. I placed the following line in my CONFIG.SYS shell=C:\COMMAND.COM C:\ /p/e:1024 The MS-DOS 3.3 manual says that "/e:nnnnn" represents the environment size, in bytes (not paragraphs). I've done this, up to /e:4096, and the system crashes once the path becomes greater than 127 characters (i've tested it, one character at a time). I'm on a Zenith Z-248/12 ('286 12MHz) running MS-DOS 3.3. Is there something I'm forgetting? E-mail replies if possible. Thanks for any help. ..lar ----- Larry Esmonde, Director of SWORD (Students Working On R & D) Villanova University, 163 Mendel Hall Villanova, Pa. 19085 UUCP: {bpa,psuvax1}!vu-vlsi!sword BITNET: sword@vuvaxcom, larry@villvm CSnet: esmonde@villanova.edu
leonard@bucket.UUCP (Leonard Erickson) (01/11/89)
In article <2103@vu-vlsi.Villanova.EDU> sword@vu-vlsi.Villanova.EDU (Ronin) writes:
<I'm having a few problems setting up my pathnames properly. I've got
<a long list of pathnames (about 240+ characters total) which I'd like
<set up. I placed the following line in my CONFIG.SYS
<
<shell=C:\COMMAND.COM C:\ /p/e:1024
<
<I've done this, up to /e:4096, and the system crashes once the
<path becomes greater than 127 characters (i've tested it, one
<character at a time).
Sorry, but due limitations (buffer size?) *inside* DOS, the path like any
other environment variable must be less than 128 bytes long. Your only
hope is to put a LASTDRIVE=?? in your CONFIG.SYS and use a lot of SUBST's
in you AUTOEXEC.BAT.
--
Leonard Erickson ...!tektronix!reed!percival!bucket!leonard
CIS: [70465,203]
"I used to be a hacker. Now I'm a 'microcomputer specialist'.
You know... I'd rather be a hacker."
keithe@tekgvs.GVS.TEK.COM (Keith Ericson) (01/12/89)
In article <1203@bucket.UUCP> leonard@bucket.UUCP (Leonard Erickson) writes: >In article <2103@vu-vlsi.Villanova.EDU> sword@vu-vlsi.Villanova.EDU (Ronin) writes: >< ><...the system crashes once the ><path becomes greater than 127 characters (i've tested it, one ><character at a time). > >Sorry, but due limitations (buffer size?) *inside* DOS, the path like any >other environment variable must be less than 128 bytes long. Your only >hope is to put a LASTDRIVE=?? in your CONFIG.SYS and use a lot of SUBST's >in you AUTOEXEC.BAT. > I have a binary of a program called BIGPATH that will approximately double the size of the path string. Grabbed from USENET almost two years ago, it is the product of Brian Moran (at the time he was "brian@mirror.TMC.COM") Check your available archives for it. I'll send it to Rahul if there are enough requests. I'll mail it out if there aren't TOO many requests: it's a little over 23kbytes as a uuencoded self-extracting zoo file. kEITH Keith Ericson at TekLabs (resident factious factotum) Tektronix, PO 500, MS 58-383 Beaverton OR 97077 (503)627-6042 UUCP: uunet!tektronix!tekgvs!keithe ARPA: keithe%tekgvs.LABS.TEK.COM@RELAY.CS.NET CSNet: keithe@tekgvs.LABS.TEK.COM
jennings@boulder.Colorado.EDU (Jeff Jennings) (01/12/89)
In article <1203@bucket.UUCP> leonard@bucket.UUCP (Leonard Erickson) writes: >In article <2103@vu-vlsi.Villanova.EDU> sword@vu-vlsi.Villanova.EDU (Ronin) writes: ><I'm having a few problems setting up my pathnames properly. I've got ><a long list of pathnames (about 240+ characters total) which I'd like ><set up. I placed the following line in my CONFIG.SYS >< ><shell=C:\COMMAND.COM C:\ /p/e:1024 >< ><I've done this, up to /e:4096, and the system crashes once the ><path becomes greater than 127 characters (i've tested it, one ><character at a time). > >Sorry, but due limitations (buffer size?) *inside* DOS, the path like any >other environment variable must be less than 128 bytes long. Your only >hope is to put a LASTDRIVE=?? in your CONFIG.SYS and use a lot of SUBST's >in you AUTOEXEC.BAT. Actually, this is a limitation of COMMAND.COM, not DOS. The command buffer in COMMAND.COM is 128 bytes, so that is the maximum length of any command. Other command interpreters allow longer command lines. There is no limitation on the size of an environment variable, it can be any length up to the size of the environment. I use a program called BIGPATH which allows me to put the following in my autoexec.bat: PATH = c:\bin;c:\tc;.... (long path) set AUXPATH = c:\games;d:\junk;.... (another long path) BIGPATH The program catenates the two paths together, so yo get a nice long PATH variable. The program was posted not too long ago, should be available from archive sites. -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Jeff Jennings University of Colorado, Boulder