1.

Solve : Command Prompt Doesn't Work?

Answer»

Quote from: smlh89450 on August 28, 2007, 09:25:33 AM

PATH=C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Java\jdk1.6.0_01\bin

I thought as much! I was right!

That is why shutdown.exe (and every other external command!!!!) won't work from the command prompt. Somehow your PATH variable has got seriously corrupted! This is a standard PATH as found on a new XP install

Quote
C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem

Additions are SUPPOSED to be tacked on at the end, it looks like yours got nuked by whatever put that Java stuff there.

Here's how to put things right

1. Right click My Computer, CHOOSE properties.
2. Choose Advanced tab.
3. Click on Environment Variables button.
4. in the SYSTEM Variables (lower part) Highlight PATH. (You have to scroll down)
5. Click the Edit button.
6. The "Edit System variable" dialog comes up.
7. The whole PATH string will be highlighted. Hit the END key to unhighlight it and position the typing cursor at the end.
8. Type a semicolon ( ; ) at the end so it reads like this

C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Java\jdk1.6.0_01\bin;

9. Copy this whole line to the clipboard

C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem

10. Paste it at the end of your PATH so it looks like this

C:\Program Files\Java\jdk1.6.0_01\bin;C:\Program Files\Java\jdk1.6.0_01\bin;C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem

11. OK three times to come right out.

12. Reboot

13. CHECK PATH looks like above.








Thank you so much. Command Prompt works perfectly now!Nice piece of work contrex ! !

Thank you.



Discussion

No Comment Found