SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DOS path command error

    I try to add a new path using path dos command, but the path can't be added.

    I first open a new cmd window, and type path, get
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM

    then I add a new path in the paht command
    ...>path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;d:\new_path;e:\

    and click ruturn button.

    Then I open a new cmd window, and ran path, but the new "d:\new_path;e:\"
    didn't show in the result, it's still
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM

    I try sereral time and the new paths can't be added.
    WHERE is wrong, thanks!

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can permanently change your PATH variable through control panel.

    Win XP: Control Panel > System > Environment Variables (not sure which tab it's in)
    Win Vista: Control Panel > System and Maintenance > System > Advanced system settings > Environment Variables

  3. #3
    SitePoint Addict
    Join Date
    Jul 2008
    Location
    sudo rm -rf /
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what you've done is chanded the PATH for that session only.

  4. #4
    SitePoint Addict shoaaib's Avatar
    Join Date
    Jun 2008
    Location
    Milton Keynes
    Posts
    201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you change the path in CMD session, the path variable stores the values untill you close that session. to permanently change path value, go to control panel>systems

  5. #5
    SitePoint Addict
    Join Date
    Jul 2001
    Posts
    326
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rapid Environment Editor
    http://www.rapidee.com/en/about


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •