Setting 'Path' in Windows XP (and path length)

Discussion in 'Computer Support' started by DW, Jan 5, 2005.

  1. DW

    DW Guest

    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
     
    DW, Jan 5, 2005
    #1
    1. Advertising

  2. DW

    Jerry G. Guest

    It can be a bit tricky to write in the path manually. Use the best way that
    works.

    --

    Jerry G.
    ======


    "DW" <> wrote in message
    news:41dc0350$0$21328$...
    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
     
    Jerry G., Jan 5, 2005
    #2
    1. Advertising

  3. DW

    Guest

    On Wed, 05 Jan 2005 15:10:06 +0000, DW <> 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
     
    , Jan 5, 2005
    #3
  4. DW

    Toolman Tim Guest

    "DW" <> wrote in message
    news:41dc0350$0$21328$...
    |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.aspx?scid=kb;en-us;832978
     
    Toolman Tim, Jan 6, 2005
    #4
  5. DW

    Toolman Tim Guest

    "Toolman Tim" <> wrote in message
    news:bU%Cd.43123$q%...
    |
    | "DW" <> wrote in message
    | news:41dc0350$0$21328$...
    ||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.aspx?scid=kb;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.
     
    Toolman Tim, Jan 6, 2005
    #5
  6. DW

    Toolman Tim Guest

    "Toolman Tim" <> wrote in message
    news:f40Dd.43125$...
    |
    | "Toolman Tim" <> wrote in message
    | news:bU%Cd.43123$q%...
    ||
    || "DW" <> wrote in message
    || news:41dc0350$0$21328$...
    |||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.aspx?scid=kb;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.
     
    Toolman Tim, Jan 6, 2005
    #6
  7. DW

    kchandr1

    Joined:
    Aug 15, 2007
    Messages:
    1
    Is there a patch for Windows 2000 server?

    Hi Community,
    I noticed the same issue with Windows 2000 Server OS, is there a patch for it? The machine i am referring to is a Windows 2000 (Server) enterprise terminal server with Service Pack 4 installed already. Is there a patch or a workaround for this issue?

    Any suggestions in this regard is appreciated.

    Thanks
    -Kishore
     
    kchandr1, Aug 15, 2007
    #7
  8. DW

    lbellysmit

    Joined:
    Jan 3, 2011
    Messages:
    1
    This is because you are typing PATH from a command prompt that was opened prior to you restting the path. Open a new CMD window and the adjusted PATH statement should be there.
     
    lbellysmit, Jan 3, 2011
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Gideon
    Replies:
    5
    Views:
    567
    Andrew Gideon
    Mar 1, 2005
  2. John

    Quality Setting in Epson R200 - Setting your own?

    John, Jan 24, 2006, in forum: Computer Information
    Replies:
    0
    Views:
    460
  3. KiwiBrian

    Check path length in Windows hierarchy?

    KiwiBrian, Oct 5, 2005, in forum: NZ Computing
    Replies:
    22
    Views:
    9,167
    Waylon Kenning
    Oct 8, 2005
  4. Martin Krag

    Long Path Tool - Fix Path Too Long Forever

    Martin Krag, Mar 31, 2011, in forum: Windows 64bit
    Replies:
    0
    Views:
    1,446
    Martin Krag
    Mar 31, 2011
  5. Martin Krag

    Long Path Tool - Fix Path Too Long Forever

    Martin Krag, Mar 31, 2011, in forum: Wireless Networking
    Replies:
    1
    Views:
    2,398
    robinst
    Dec 15, 2012
Loading...

Share This Page