Article View: comp.os.msdos.misc
Article #3908Re: [Q] : How to make PATH longer
From: Peter Welsby
Date: Mon, 22 Jan 1996 00:00
Date: Mon, 22 Jan 1996 00:00
45 lines
2701 bytes
2701 bytes
On Tue, 16 Jan 1996 19:26:28 +0000 Paul Dingley
<paul@rivdell.demon.co.uk>,
while pondering aus.computers.ibm-pc,
wrote:
>In article <4dd93u$m6e$1@sydney.DIALix.oz.au>, John Savage
>>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.
>If you set the path in the config.sys, you CAN alter it from apps after
>startup - we've done it in a VB program under Windows, but the trick is
>you need to pad the path to a maximum length in the config.sys by using
>the SemiColon character.....
Even then, some programs barf at you unless they actually ARE on the
PATH (expecially for things like configuration files).
You can solve this by...
DO_WHATEVER.BAT
@echo off
cd where-ever
path > %temp%\old_path.bat
path new_path;%path%
do_whatever
%temp%\old_path
del %temp%-old_path
Then, run this batch file instead of the .EXE, which is run in line 5.
I used a slightly enhanced version of this batch file for the PCs at
work for DOS programs in a networked environment where there might be
10 or more programs all clamoring to be on the PATH.
pete
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Peter Welsby email: welsbyp@dpi.qld.gov.au
Resource Management Institute voice: +61 7 3896 9554
Dept Primary Industries, Meiers Rd fax : +61 7 3896 9623
INDOOROOPILLY, QLD, 4068, AUSTRALIA
Technical Details
Message-ID:
<DLKEIF.5Fo@planet.mh.dpi.qld.gov.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4cd28l$87b@widow.nla.gov.au> <4dd93u$m6e$1@sydney.DIALix.oz.au> <7TABeDAkv$+wEweU@rivdell.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d683,c62afe7bb2540ff X-Google-Attributes: gid10d683,public X-Google-Thread: f53ba,c62afe7bb2540ff X-Google-Attributes: gidf53ba,public X-Google-Thread: 111d31,c62afe7bb2540ff X-Google-Attributes: gid111d31,public X-Google-Thread: f71eb,4c4b851412319ff X-Google-Attributes: gidf71eb,public X-Google-Thread: 1674b9,c62afe7bb2540ff X-Google-Attributes: gid1674b9,public From: welsbyp@dpi.qld.gov.au (Peter Welsby) Subject: Re: [Q] : How to make PATH longer Date: 1996/01/22 Message-ID: <DLKEIF.5Fo@planet.mh.dpi.qld.gov.au> X-Deja-AN: 136033093 sender: news@planet.mh.dpi.qld.gov.au references: <4cd28l$87b@widow.nla.gov.au> <4dd93u$m6e$1@sydney.DIALix.oz.au> <7TABeDAkv$+wEweU@rivdell.demon.co.uk> organization: Dept. Primary Industries, Queensland newsgroups: comp.os.msdos.misc,comp.binaries.ibm.pc.wanted,comp.archives.msdos.d,comp.sys.ibm.pc.misc,aus.computers.ibm-pc