reset environment variables XP pro

Posted on 2009-04-29
Last Modified: 2012-08-13
I cloned my C: hard drive and have had some little problems since.
What is happening now is that in the command window, neither ping or ipconfig work unles I change the path to c:\windows\system32.
This tells me the environment variables (path for example) are not available somehow. I look in control panel/system/advanced/environment variables and edit the 'path' variable and see that %systemroot% is there and I do 'set' in the command window and see that the %systemroot% variable is 'C:\windows' as is appropriate. %systemroot%\system32 is also in the path statement.
And yet it does not work in the command window.

What can I do to fix this?
I am thinking a registry entry is hosed but don't know where to look.
Maybe the problem is the command window since most other things seem OK after a few re-installes.
Question by:Liefr
    LVL 14

    Accepted Solution

    LVL 14

    Expert Comment

    the two attached for local machine settings and the other for currrent user setting......rename extension to reg and you can import into registry (double click on file)..they set env paths to common can do so manually if you want to...just follow the registry key paths.

    Hope this helps


    Author Comment

    sorry guys, I have been distracted recently.

    I will respond soon on your suggestions.


    Author Comment

    ok, then ... thanks to your suggestion I found that my environment variable for 'Path' was not the expandable type.
    How it got changed may remain one of lifes little mysteries.
    I copied the value, deleted and re-added the key, rebooted and it works again ...

    a miracle.

    Thanks BigBad ...

    Author Closing Comment

    I was impatient with info I thought I already knew but the answer was there.
    LVL 14

    Expert Comment

    Your welcome, glad it worked out :)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Looking for Windows Search 4.0 capabilities in Windows 7/8.1/10 6 60
    PHPExcel UTF-8 8 1,616
    RemoteApp Printing 5 90
    Windows XP image 11 100
    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now