Length limitation of Path Environment Variable?

G

Guest

Dear All,

Do anyone can help me on this? Does Windows 2k and NT has length limitation
on Path variable?

I found that when we tried to append some path to user path variable to some
our workstations. some machines unable to make the user path variable take
effect and only system path variable take effect on the machine.

After shorten the path, the user path variable can append to system path
again.

Does this really the OS limitation? are there any workaround solution other
than shorten the path??

Thanks in advance!!
Ken
 
P

Pegasus \(MVP\)

Kenneth Yan said:
Dear All,

Do anyone can help me on this? Does Windows 2k and NT has length limitation
on Path variable?

I found that when we tried to append some path to user path variable to some
our workstations. some machines unable to make the user path variable take
effect and only system path variable take effect on the machine.

After shorten the path, the user path variable can append to system path
again.

Does this really the OS limitation? are there any workaround solution other
than shorten the path??

Thanks in advance!!
Ken

I recall some other post where a maximum size of around 1000 characters
was mentioned.

Having a very long path slows down your PC because the operating system
has to search through a large number of folders when attempting to locate
an executable. Here are a couple of alternatives:

- Start the application in the folder where the executables reside.
- Fully qualify your executables. Instead of creating a shortcut with a
target
field of "winword.exe", make it "c:\program files\microsoft
office\office11\winword.exe".
 
T

Torgeir Bakken \(MVP\)

Kenneth said:
Do anyone can help me on this? Does Windows 2k and NT has length limitation
on Path variable?

I found that when we tried to append some path to user path variable to some
our workstations. some machines unable to make the user path variable take
effect and only system path variable take effect on the machine.

After shorten the path, the user path variable can append to system path
again.

Does this really the OS limitation? are there any workaround solution other
than shorten the path??
Hi,

What is the maximum length of the PATH variable?
http://www.jsifaq.com/subD/tip1900/rh1907.htm

<quote>
The System path has a maximum length of 1023 bytes, not counting the
Path= characters.

The user defined path is the lesser of 511 bytes or (1023 - SystemPath).

</quote>
 
C

Colon Terminus

Yes, there is a linit on the length of a path.

Subst is your friend.
Enter subst /? at a command prompt for details.

You can substitute X:\ for
pathname\way\too\long\for\the\system\to\deal\with\
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top