🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #44086

Re: How can I set a PATH longer than 128 bytes ?

#44086
From: Fred Smith
Date: Tue, 13 Mar 1990 23:54
24 lines
1409 bytes

Well, there are several ways around this problem. The problem is due, by
the way, not to the length of the environment, but rather due to the fact
that command.com allows only 127 bytes maximum on a command line.

list of ways around it:

1. Do as others have suggested and use short directory names for all those
  places you want in the PATH.

2. Use the DOS subst command to make those long subdirectory names look
  like disk drives (which have a short name, don't they!) and then name
  the root directory of that "drive" in the path. I have done this in the
  past on several systems and never had a problem with it.

3. Use the program APPENV which appeared in one of the newsgroups here last
  summer. This is a TurboC program which adds the string given as its
  argument onto the end of the environment variable  specified on its
  command line. I don't know where it is archived, but it might be
  simtel20.


Fred Smith
Technical Details
Message-ID: <8462@cg-atla.agfa.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!wang!cg-atla!fredex

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!wang!cg-atla!fredex
From: fredex@cg-atla.agfa.com (Fred Smith)
Newsgroups: comp.sys.ibm.pc
Subject: Re: How can I set a PATH longer than 128 bytes ?
Message-ID: <8462@cg-atla.agfa.com>
Date: 13 Mar 90 23:54:04 GMT
Reply-To: fredex@cg-atla.UUCP (Fred Smith)
Organization: Agfa Compugraphic Division
Lines: 24