Article View: comp.os.msdos.misc
Article #3888Re: [Q] : How to make PATH longer
From: John McGowan
Date: Tue, 13 Feb 1996 00:00
Date: Tue, 13 Feb 1996 00:00
42 lines
2991 bytes
2991 bytes
Michael Adams (lennon@pop.jaxnet.com) wrote:
> On Sun, 04 Feb 96 17:11:41 GMT, hinshara@inlink.com (Paul Hustava)
> wrote:
> >In article <31111f73.6461157@204.96.200.6>,
> > glew@ionet.net (Gordon A. Lew) wrote:
> >>John McDougall <johnm> wrote:
> >>
> >>>>>>>>Can I extend the length of the PATH somehow ?
> for whatever reason you can either put the statment in your config.sys
> or ...I 'vt got unto the habit for writing little bat files and they
> are in the path in a dir called tooks. the actual bat is nothing more
> than the path as if you were to call it up from a dos promt.
> ie c:\xtgold\xtgold <- stick that in a bat file called X.bat
> and wala it loads and its not in the path statment
OK, unless the programme you are using only looks in the current
directory or directories on the path for support files (rather than the
programme's directory).
I use batch files of the form:
set oldpath=%PATH% (save current version of PATH)
set path=%OLDPATH%;c:\xtgold (or whatever) (add to PATH)
code to run the programme
set path=%OLDPATH% (recover original path)
set OLDPATH= (remove temporary variable from environment)
Which temporarily adds something to the path (whatever I need), does
whatever, and then cleans up.
I believe DOS_World had some batch files in (fairly) recent issues which
(like 4Dos and other utilities) permitted one to add/delete items from
the path (though I find it easier just to do something like the above).
Regards from:
--
John McGowan | jmcgowan@inch.com [Internet Channel]
| jmcgowan@mail.coin.missouri.edu [COIN]
--------------+-----------------------------------------------------
Technical Details
Message-ID:
<4fpls1$h3j@sleepy.inch.com>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> <4e6i8a$99d@cloner3.netcom.com> <4e9i8k$ufe@rover.ucs.ualberta.ca> <4ej1c5$h0l@kannews.ca.newbridge.com> <31111f73.6461157@204.96.200.6> <4f2oms$naj@news1.inlink.com> <4fhd2i$ej1@jaxnet.jaxnet.com>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: 1674b9,c62afe7bb2540ff X-Google-Attributes: gid1674b9,public X-Google-Thread: 111d31,c62afe7bb2540ff X-Google-Attributes: gid111d31,public X-Google-Thread: f71eb,4c4b851412319ff X-Google-Attributes: gidf71eb,public From: jmcgowan@metric.inch.com (John McGowan) Subject: Re: [Q] : How to make PATH longer Date: 1996/02/13 Message-ID: <4fpls1$h3j@sleepy.inch.com> X-Deja-AN: 139162221 references: <4cd28l$87b@widow.nla.gov.au> <4dd93u$m6e$1@sydney.DIALix.oz.au> <7TABeDAkv$+wEweU@rivdell.demon.co.uk> <4e6i8a$99d@cloner3.netcom.com> <4e9i8k$ufe@rover.ucs.ualberta.ca> <4ej1c5$h0l@kannews.ca.newbridge.com> <31111f73.6461157@204.96.200.6> <4f2oms$naj@news1.inlink.com> <4fhd2i$ej1@jaxnet.jaxnet.com> followup-to: comp.os.msdos.misc,comp.binaries.ibm.pc.wanted,comp.archives.msdos.d,comp.sys.ibm.pc.misc,aus.computers.ibm-pc organization: The Internet Channel newsgroups: comp.os.msdos.misc,comp.binaries.ibm.pc.wanted,comp.archives.msdos.d,comp.sys.ibm.pc.misc,aus.computers.ibm-pc