PC Review


Reply
Thread Tools Rate Thread

1024 char path limit

 
 
JaimeP
Guest
Posts: n/a
 
      15th Jul 2004
Hi all windows gurus,
i think this is the place whre i can put a question:
is there any workaround for the 1024 char limit for the
contents of the PATH env variable? In my server (w2k
server) i need to have a lost of things installed (3
different oracle homes, appdev tool, etc) and all of them
uses more of the specified 1024 chars.

Tnaks in advance for your help.
Have a nice life.
Jaime
 
Reply With Quote
 
 
 
 
Walter Briscoe
Guest
Posts: n/a
 
      16th Jul 2004
In message <2e51601c46aa8$3f2006d0$(E-Mail Removed)> of Thu, 15 Jul 2004
13:13:51 in microsoft.public.win2000.cmdprompt.admin, JaimeP
<(E-Mail Removed)> writes
>Hi all windows gurus,
>i think this is the place whre i can put a question:
>is there any workaround for the 1024 char limit for the
>contents of the PATH env variable? In my server (w2k
>server) i need to have a lost of things installed (3
>different oracle homes, appdev tool, etc) and all of them
>uses more of the specified 1024 chars.

Have you rejected the subst command? subst /? for information.
--
Walter Briscoe
 
Reply With Quote
 
Craig Barkhouse
Guest
Posts: n/a
 
      16th Jul 2004

"Walter Briscoe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In message <2e51601c46aa8$3f2006d0$(E-Mail Removed)> of Thu, 15 Jul 2004
> 13:13:51 in microsoft.public.win2000.cmdprompt.admin, JaimeP
> <(E-Mail Removed)> writes
> >Hi all windows gurus,
> >i think this is the place whre i can put a question:
> >is there any workaround for the 1024 char limit for the
> >contents of the PATH env variable? In my server (w2k
> >server) i need to have a lost of things installed (3
> >different oracle homes, appdev tool, etc) and all of them
> >uses more of the specified 1024 chars.

> Have you rejected the subst command? subst /? for information.
> --
> Walter Briscoe


Additionally, you can create junctions (which are like directory symbolic
links) to some of your longer directories. I use the JUNCTION utility from
www.sysinternals.com. There is also a LINKD utility from Microsoft in the
Win2K resource kit, I believe.


 
Reply With Quote
 
Guest
Posts: n/a
 
      17th Jul 2004
Hi Walter,
thaks for your answer. Now i have to ask you if that
works fine in Windows 2000 Server. Security issues?
Thanks again for your time.
Have a nice life.
Jaime
>Have you rejected the subst command? subst /? for

information.
>--
>Walter Briscoe
>.
>

 
Reply With Quote
 
Walter Briscoe
Guest
Posts: n/a
 
      17th Jul 2004
In message <2e7cc01c46b8e$5c013e90$(E-Mail Removed)> of Fri, 16 Jul 2004
16:41:04 in microsoft.public.win2000.cmdprompt.admin, anonymous@discussi
ons.microsoft.com writes
>Hi Walter,
>thaks for your answer. Now i have to ask you if that
>works fine in Windows 2000 Server. Security issues?


Jaime,
I have no notion of what works or fails in Windows 2000 Server - I run
Windows 2000 - or of security issues involved with the subst command.
Effectively, it creates another drive letter which is part of a drive
you already have. I would expect it has no additional security
implications assuming that you can prevent attack on the code which
creates the definition. There may be problems with programs which
enumerate drives assuming they are distinct. For example, when I search
for files or folders, the default is to search local harddrives (C;F;W).
F and W are each part of C. Craig Barkhouse's suggestion of junctions is
likely to be better. I leave you to explore as shall I.

However, I wonder if the problem you pose is the correct one.
Why do you need a path of more than 1K bytes? Searching for executables
via such a path is likely to hammer performance.

I use the subst command in two ways:
1) as a shorthand when I am doing intensive work on a particular sub-
directory (and its sub-directories recursively) of a drive.
2) For the situation of a drive whose letter is not fixed.

You can see both in the following list:
C:\) subst
F:\: => C:\wfb\url\ftp\sources.redhat.com\pub\bzip2\v102\bzip2-1.0.2.2
W:\: => C:\watcom

On my XP system, my usual C drive is actually the E drive and W is
E:\watcom. I can, as a result, refer to the same things via drive W on
both systems.
--
Walter Briscoe
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Find limited to 1024 char Dave Peterson Microsoft Excel Discussion 0 12th Jan 2010 01:26 PM
Maxtor OneTouch II & Dantz Backup choke 255 char path limit Win XP MCE HP m7260n JJ Windows XP General 2 14th Feb 2006 09:54 PM
How do I limit input-length (char by char) into a Memo Field =?Utf-8?B?TkpT?= Microsoft Access VBA Modules 2 17th Nov 2004 04:29 PM
1024 char cell display limit Jeff Microsoft Excel Misc 1 24th Jan 2004 01:20 AM
Is there a way to override the 1024 char limit size on environment variables on win2000 ? Anthony Lichnewsky Microsoft Windows 2000 5 2nd Aug 2003 03:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 PM.