🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.misc
Article #3911

Re: [Q] : How to make PATH longer

#3911
From: John Savage
Date: Mon, 15 Jan 1996 00:00
57 lines
3249 bytes
Simon Oldfield <soldfiel@nla.gov.au> writes:
>Can I extend the length of the PATH somehow ?
>I tried putting a SHELL=C:\DOS\COMMAND.COM /E:32768 in my CONFIG.SYS but it

That is far too large an environment, and is not the source of your problem.
In version 6 (maybe 5, too) you can get > 120 chars in PATH if you set
PATH from within config.sys, and don't modify it in autoexec.bat or later.

Alternatively, look at what these utilities have to offer:

ftp ftp.cdrom.com  /pub/garbo/garbo_pc/envutil/
bigpath.zip     Make Dos path command almost twice as big
desetp12.zip    Sets path variables longer than 128 bytes

ftp ftp.cdrom.com  /pub/simtel/msdos/pathutil/
chpath11.zip  B   17463  941112  Extend PATH and manipulate PATH entries
cpath20.zip   B   12357  900413  Extend PATH to more than 128 characters
setpth14.zip  B   13325  900406  Set PATH to more than 127 characters
spoon1a.zip   B   48087  881008  Spoon Path v1a: menued 4.5k TSR path extender
xpath39.zip   B   20389  911224  Xpath 3.9, DOS Path Extender for DOS 5.0

One furthur possibility:-

ftp ftp.cdrom.com /pub/garbo/garbo_pc/envutil/rbsetnv1.zip

This archive provides a collection of utilities that you may find useful.
It creates and works with a PATH >128 - I don't know if there is a limit
apart from that imposed by the environment space (I haven't explored it to
the point of discovering its limits).

ADDPATH
CHGPATH
DELPATH
INCR
INSPATH
SETENV
EVAL

These allow you to append something to PATH, to replace a directory located
somewhere within PATH, to delete a directory from PATH, etc.
If a UNIX user, you should feel quite at home with the ` ...` construct.

Example: to append a directory to the current PATH:

setenv path `addpath c:\maths\tools\excel_4`

Note: The SET and PATH commands (without args) in DOS only print out the
      first 127 chars of PATH, so are not a lot of help when PATH >128.

The method setenv uses should still allow new software to automatically
install itself by the usual method of appending to PATH in your autoexec.bat
file.  Set PATH to something well short of the 127 limit, and follow it by
the use of setenv to add furthur desired directories.

Australian users can get these files from ftp archie.au  /micros/pc/...
--
John Savage               koala@sydney.dialix.com.au
Technical Details
Message-ID: <4dd93u$m6e$1@sydney.DIALix.oz.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4cd28l$87b@widow.nla.gov.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d683,c62afe7bb2540ff,start
X-Google-Attributes: gid10d683,public
X-Google-Thread: f53ba,c62afe7bb2540ff,start
X-Google-Attributes: gidf53ba,public
X-Google-Thread: 1674b9,c62afe7bb2540ff,start
X-Google-Attributes: gid1674b9,public
X-Google-Thread: f71eb,4c4b851412319ff
X-Google-Attributes: gidf71eb,public
X-Google-Thread: 111d31,c62afe7bb2540ff,start
X-Google-Attributes: gid111d31,public
From: John Savage <koala@sydney.dialix.com.au>
Subject: Re: [Q] : How to make PATH longer
Date: 1996/01/15
Message-ID: <4dd93u$m6e$1@sydney.DIALix.oz.au>
X-Deja-AN: 135244314
sender: koala@sydney.DIALix.oz.au
references: <4cd28l$87b@widow.nla.gov.au>
organization: Gumleaf Smoke Signals Telegraph Co.
newsgroups: comp.os.msdos.misc,comp.binaries.ibm.pc.wanted,comp.archives.msdos.d,comp.sys.ibm.pc.misc,aus.computers.ibm-pc