- Setting 'Path' in Windows XP (and path length)
- Posted by DW on January 5th, 2005
I am able to set Path in XP (using System Properties/Environment
Variables) but adding another directory does not seem to enable me to
access the exe /com files in that directory from the command prompt.
The added directory is shown when I use the 'PATH' command from the
prompt, but typing the exe name results in '... not recognised as an
internal or external command...' message.
If I shorten the whole PATH to just this one directory it then works.
so... is there a restriction on PATH length (there was/is in DOS) and if
so, is there a way of getting round this. (OR maybe I am just doing the
whole thing incorrectly !!)
TIA
- Posted by Jerry G. on January 5th, 2005
It can be a bit tricky to write in the path manually. Use the best way that
works.
--
Jerry G.
======
"DW" <dw@nospamformeplease.com> wrote in message
news:41dc0350$0$21328$db0fefd9@news.zen.co.uk...
I am able to set Path in XP (using System Properties/Environment
Variables) but adding another directory does not seem to enable me to
access the exe /com files in that directory from the command prompt.
The added directory is shown when I use the 'PATH' command from the
prompt, but typing the exe name results in '... not recognised as an
internal or external command...' message.
If I shorten the whole PATH to just this one directory it then works.
so... is there a restriction on PATH length (there was/is in DOS) and if
so, is there a way of getting round this. (OR maybe I am just doing the
whole thing incorrectly !!)
TIA
- Posted by Pennywise@DerryMaine.gov on January 5th, 2005
On Wed, 05 Jan 2005 15:10:06 +0000, DW <dw@nospamformeplease.com> wrote:
|> I am able to set Path in XP (using System Properties/Environment
|> Variables) but adding another directory does not seem to enable me to
|> access the exe /com files in that directory from the command prompt.
|>
|> The added directory is shown when I use the 'PATH' command from the
|> prompt, but typing the exe name results in '... not recognised as an
|> internal or external command...' message.
|>
|> If I shorten the whole PATH to just this one directory it then works.
|>
|> so... is there a restriction on PATH length (there was/is in DOS) and if
|> so, is there a way of getting round this. (OR maybe I am just doing the
|> whole thing incorrectly !!)
Have you tried the SET command?
SET
Path=
--
http://www.nypost.com/commentary/37715.htm
- Posted by Toolman Tim on January 5th, 2005
"DW" <dw@nospamformeplease.com> wrote in message
news:41dc0350$0$21328$db0fefd9@news.zen.co.uk...
|I am able to set Path in XP (using System Properties/Environment
| Variables) but adding another directory does not seem to enable me to
| access the exe /com files in that directory from the command prompt.
|
| The added directory is shown when I use the 'PATH' command from the
| prompt, but typing the exe name results in '... not recognised as an
| internal or external command...' message.
|
| If I shorten the whole PATH to just this one directory it then works.
|
| so... is there a restriction on PATH length (there was/is in DOS) and if
| so, is there a way of getting round this. (OR maybe I am just doing the
| whole thing incorrectly !!)
|
| TIA
The path statement length limit is 1024 characters, 2048 in SP2.
http://support.microsoft.com/default...b;en-us;832978
- Posted by Toolman Tim on January 5th, 2005
"Toolman Tim" <no.spam.for.tcm@my.email.is.invalid> wrote in message
news:bU%Cd.43123$q%5.6736@fe05.lga...
|
| "DW" <dw@nospamformeplease.com> wrote in message
| news:41dc0350$0$21328$db0fefd9@news.zen.co.uk...
||I am able to set Path in XP (using System Properties/Environment
|| Variables) but adding another directory does not seem to enable me to
|| access the exe /com files in that directory from the command prompt.
||
|| The added directory is shown when I use the 'PATH' command from the
|| prompt, but typing the exe name results in '... not recognised as an
|| internal or external command...' message.
||
|| If I shorten the whole PATH to just this one directory it then works.
||
|| so... is there a restriction on PATH length (there was/is in DOS) and if
|| so, is there a way of getting round this. (OR maybe I am just doing the
|| whole thing incorrectly !!)
||
|| TIA
|
| The path statement length limit is 1024 characters, 2048 in SP2.
| http://support.microsoft.com/default...b;en-us;832978
|
Here's a thought - put your 'troublesome' path info at the beginning of the
path statement, and see if that helps. It appears to me (playing with this)
that in the command emulator your path statement gets truncated to 127,
which was the DOS limit.
- Posted by Toolman Tim on January 5th, 2005
"Toolman Tim" <no.spam.for.tcm@my.email.is.invalid> wrote in message
news:f40Dd.43125$G96.39970@fe05.lga...
|
| "Toolman Tim" <no.spam.for.tcm@my.email.is.invalid> wrote in message
| news:bU%Cd.43123$q%5.6736@fe05.lga...
||
|| "DW" <dw@nospamformeplease.com> wrote in message
|| news:41dc0350$0$21328$db0fefd9@news.zen.co.uk...
|||I am able to set Path in XP (using System Properties/Environment
||| Variables) but adding another directory does not seem to enable me to
||| access the exe /com files in that directory from the command prompt.
|||
||| The added directory is shown when I use the 'PATH' command from the
||| prompt, but typing the exe name results in '... not recognised as an
||| internal or external command...' message.
|||
||| If I shorten the whole PATH to just this one directory it then works.
|||
||| so... is there a restriction on PATH length (there was/is in DOS) and if
||| so, is there a way of getting round this. (OR maybe I am just doing the
||| whole thing incorrectly !!)
|||
||| TIA
||
|| The path statement length limit is 1024 characters, 2048 in SP2.
|| http://support.microsoft.com/default...b;en-us;832978
||
|
| Here's a thought - put your 'troublesome' path info at the beginning of
the
| path statement, and see if that helps. It appears to me (playing with
this)
| that in the command emulator your path statement gets truncated to 127,
| which was the DOS limit.
|
And one final follow-up...you say you're at a command prompt - try CMD
instead of COMMAND. My path statement didn't get truncated when I checked it
from opening a command window via CMD.