🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #832

Re: Setting the path variable in autoexec.bat

#832
From: beauvais
Date: Mon, 02 Jul 1990 20:18
27 lines
1762 bytes
In article <1990Jun28.211556.10833@Octopus.COM> stever@octopus.UUCP (Steve Resnick ) writes:
>In article <1102@valinor.ACA.MCC.COM> hang@valinor.ACA.MCC.COM (Hang Ho Ng) writes:
>>I have a number of paths that I want to include in the PATH variable in
>>autoexec.bat file. Could someone tell me how to do it?
>
>This was covered a couple of months ago. The DOS limitation on command
>strings (PATH=<foo> for instance) is 128 bytes. If your path is longer than 
>that you will either need some program to allow you to enter a longer string.
>(Of which I don't know of any) or you will need to limit your path to a smaller
>size and use batch files to assist in navigation.

True, a DOS command line IS limited to 128 characters.  So, use more than
one command line!  Try something like this...

path=c:\dos;c:\;d:\utils
path=%path%;d:\wp;d:\edit

The %path% means "whatever the current path is."  The second line appends
the new stuff to the value of %path%.  This works fine in DOS 3.3 - I use
it all the time for paths longer than 132 characters.



-- 
	Dan Beauvais                    ...!mcnc!rti!bbt!djb
	BroadBand Technologies, Inc.  +1(919)-544-6850 x 295
	Box 13737     Research Triangle Park, NC  27709-3737
Technical Details
Message-ID: <857@bbt.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!mcnc!rti!bbt!djb
References: <1102@valinor.ACA.MCC.COM> <1990Jun28.211556.10833@Octopus.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!mcnc!rti!bbt!djb
From: djb@bbt.UUCP (beauvais)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Setting the path variable in autoexec.bat
Keywords: path
Message-ID: <857@bbt.UUCP>
Date: 2 Jul 90 20:18:06 GMT
References: <1102@valinor.ACA.MCC.COM> <1990Jun28.211556.10833@Octopus.COM>
Reply-To: djb@bbt.UUCP (beauvais)
Distribution: usa
Organization: Broadband Technologies, Inc., Research Triangle Park, NC
Lines: 27