accidentally deleted PATH variable

Discussion in 'Windows 7 Help and Support' started by Odel555q, Nov 6, 2009.

  1. Odel555q

    Odel555q New Member

    Joined:
    Nov 6, 2009
    Messages:
    6
    Likes Received:
    0
    I was trying to edit my PATH environment variable and accidentally deleted it. Is there any way to recover it? If not, is there anyone out there who can tell me what the default path variable should be? I'm afraid to turn off my computer without fixing this as I'm not sure if it will be able to boot up again.
     
  2. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,841
    Likes Received:
    1,568
    Have you tried System restore? Why were you doing the above?
     
  3. Odel555q

    Odel555q New Member

    Joined:
    Nov 6, 2009
    Messages:
    6
    Likes Received:
    0
    I was adding the path for my C++ compiler but instead of appending onto the end of the existing path I accidentally overwrote it.

    I haven't tried system restore for the same reason I don't want to reboot, I'm not sure what kinds of problems might arise. Is it possible that you could just copy and paste your existing path variable so I can see what basic directories are needed just so that Windows will function properly?
     
  4. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,841
    Likes Received:
    1,568
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static


    Any good?
     
  5. Odel555q

    Odel555q New Member

    Joined:
    Nov 6, 2009
    Messages:
    6
    Likes Received:
    0
    That did it, thanks!
     
  6. kemical

    kemical Windows Forum Admin
    Staff Member Premium Supporter Microsoft MVP

    Joined:
    Aug 28, 2007
    Messages:
    31,841
    Likes Received:
    1,568
    Your very welcome..:D
     
  7. Pranali

    Pranali New Member

    Joined:
    Apr 18, 2010
    Messages:
    2
    Likes Received:
    0
    I also deleted a system variable accidentally. But I could not even see what the name of the variable was. :( What should I do know the name of the variable which I deleted and its value? Any idea?
     
  8. Gv Sparx

    Gv Sparx New Member

    Joined:
    Nov 21, 2011
    Messages:
    2
    Likes Received:
    0
    I signed up just to say thank you :)
     
  9. Alfred

    Alfred New Member

    Joined:
    Apr 10, 2013
    Messages:
    2
    Likes Received:
    0
    I did the same thing while setting up a compiler for Java. I put the restored the windows default path as above, but my path was pretty hefty before I lost it. Can anyone provide advise on how to go through the software I have installed and figure out what needs to be added back to the path variable? I guess I'll start with the other compilers, (Visual Studio, Processing, Arduino, Bloodshed, CodeBlocks) but I'm not sure about what other software will need to be there.
     

Share This Page

Loading...