Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Command Prompt Doesn't Work  (Read 40793 times)

0 Members and 1 Guest are viewing this topic.

contrex

  • Guest
Re: Command Prompt Doesn't Work
« Reply #15 on: August 28, 2007, 10:53:26 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.








« Last Edit: August 28, 2007, 11:43:12 AM by contrex »

smlh89450

    Topic Starter


    Beginner

    Re: Command Prompt Doesn't Work
    « Reply #16 on: August 28, 2007, 11:35:58 AM »
    Thank you so much.  Command Prompt works perfectly now!

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Command Prompt Doesn't Work
    « Reply #17 on: August 28, 2007, 03:53:56 PM »
    Nice piece of work contrex ! !

     ;)
    " Anyone who goes to a psychiatrist should have his head examined. "

    contrex

    • Guest
    Re: Command Prompt Doesn't Work
    « Reply #18 on: August 28, 2007, 11:44:05 PM »
    Thank you.  :)