Sunday, February 04, 2007

Command Paths not working, and %SystemRoot% not resolving...and a fix

This happened to apply to my brand spanking new Dell Latitude D820, however, I believe it is a more general problem that can occur with Windows. I don't know what situations create the problem, but I did find a solution. Also searching the web for this problem reveals others have been troubled with it as well.

Ok, so I found simple "always there" commands weren't working, such as ping or ipconfig. When trying to launch ipconfig from the command line I would get: 'ipconfig' is not recognized as an internal or external command, operable program or batch file. (You can see it in the screenshot of my Command Prompt below.)

I did an echo %PATH% and observed that %SystemRoot% was not being evaluated. You can see from the screenshot below instead of showing "C:\WINDOWS" it was showing %SystemRoot% (I've highlighted them in red.) This is the state the computer shipped from Dell with a purchased copy of XP Pro installed so this situation is going to affect a LOT of users. Of course, maybe most Dell customers don't use the command line.


Scroll down to see the screenshot... argh these blogspot templates suck at handling wide images.


















Here's a screenshot of the error, and the faulty path lookup in action.


So my immediate thought was that %SystemRoot% hadn't been setup in the Windows Environment Variables. However, bringing up the dialog showed me that it was:



Anyway, the solution is just to kick Windows XP into re-evaluating the %Path% variable. The entries were all there, but somehow Windows has cached an invalid lookup for it. The easiest way I believe to do this is to go into the environment variables. Just click edit, you don't even have to change anything, and then click OK.




Now your old command prompt if it is open won't be updated, but if you open a new one, everything should work as you expected.


12 comments:

Unknown said...

Hi,
thanks for help. I had the same problem with some machines which (probably) were installed using some mass deployment tools (sysprep?) - similar to Dell. Anyway there was slight difference - I had to make SOME change in path (deleted % from %systemroot%), applied, then typed back % and applied again -then it worked.
Thanks again
kind regards

Justin Holzer said...

I actually had this exact same problem today. It appeared to be caused by having the '%' character as the first character in the PATH string. As long as I put something other than '%' at the beginning of the PATH string, Windows had no issues resolving %SystemRoot%, or any other variable. My advice, just make sure the first directory in your path is hard-coded (i.e. c:\foo), and this problem can hopefully be avoided.

David said...

Hi,

Very GREAT HELP on this blog!!!

I also want to add on that in the path field, do NOT key after any semi colon, any space between a path will render it as invalid.

David said...

Hi,

Very GREAT HELP on this blog!!!

I also want to add on that in the path field, do NOT press "SPACE BAR" after any semi colon, any space between a path will render it as invalid.

Rosie Taylor said...

It is not easy to find knowledgeable and skillful technicians that you can trust for mending your troublemaking Canon Printer. However, now we have made this task easier for you, you just need to dial +1-866-569-8043, there you will be able to connect with printer masters.
Canon Printer Help Number

Anonymous said...

thank you for sharing your interesting and helpful information. asus router customer service

Daisy Smith said...

Having difficulty in canon Printer giving out print-outs is resolved if the user has dialed Canon Printer Support Number UK. This way user will be told about the things which are causing the action not taking place and the reason which is causing obstruction.
Canon Printer Contact Number UK

UK Tech Help said...

Canon Printer users might confront frequent paper jams and this will impact its printing efficiency severely. If you want to fix this problem, contacting the tech representatives at Canon Printer Technical Team UK will fix everything in the shortest period of time.
Canon Printer Help Number UK

Helpline Bank Supporter Customer Number 0811-458-3004 and 0808-421-1856 said...

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Helpline Customer Care 24x7 Hours
__0808-421-1856________
__0811-458-3004________
__0736-682-6798________
__0628-913-2985________
Contact here 📞for refund money and any enquiries.....

Anonymous said...

The size of Blockchain refers to the limit of amount of transaction of network of bitcoin can be processed. For Blockchain bitcoin is limited to size and frequency.The capacity of bitcoin network during on chain transaction is limited by average creation of block times of ten minutes and limited block size The maximum transaction processing capacity up to 3.3 to 7 transactions per second .But our team can bring out the solution through which we minimize this types of issues. If you are interested to know about it please call us on our Blockchain customer support number 800-861-8259 we provide you full fledged information regarding it.

Anonymous said...

Indonesia
Easy
Learning
Indonesian
Jual Beli HP
bimbelLampung
Service HP
komponen hp
Gamers

Liam Carter said...

I just download and use "Long Path Tool" to fix your error fast and easy.