Article View: comp.sys.ibm.pc
Article #26818Re: MS-DOS Path Name Length
From: Gopal
Date: Thu, 28 Apr 1988 14:45
Date: Thu, 28 Apr 1988 14:45
23 lines
1481 bytes
1481 bytes
Perhaps the problem can be avoided altogether by setting up one directory
(let's say c:\bin) that contains .bat files to execute your programs
stored in other directories.
This a) makes the PATH short - perhaps all it may be is: c:\bin; c;\dos;
b) makes it shorter to find a program since all the directories in
the path does not have to be searched.
c) also provides a way to set up the environment for that particular
program. For example, let us say that a program called "someprog"
requires an environment variable called "someenvv" to be set. You
can set up this variable using the batch file, execute the program,
and then scrap this variable so that it does not take up any
environment space.
sp.bat = set someenvv=whatever
c:\somedir\someprog
set someenvv=
'tis what I do and has worked well for me. You probably want to add an
"echo off" also to the batch file.
Venu P Gopal
ihnp4!ihuxy!vg55611
Technical Details
Message-ID:
<2501@ihuxy.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!att-ih!ihnp4!ihuxy!vg55611References:
<1796@uhccux.UUCP> <10611@steinmetz.ge.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!uwvax!oddjob!gargoyle!att-ih!ihnp4!ihuxy!vg55611 From: vg55611@ihuxy.ATT.COM (Gopal) Newsgroups: comp.sys.ibm.pc Subject: Re: MS-DOS Path Name Length Message-ID: <2501@ihuxy.ATT.COM> Date: 28 Apr 88 14:45:04 GMT References: <1796@uhccux.UUCP> <10611@steinmetz.ge.com> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 23 Summary: Use short bat files and short PATHs