1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

What happened to my cmd?

Discussion in 'Windows 7' started by Galaxyview, 2011/10/26.

  1. 2011/10/26
    Galaxyview

    Galaxyview Inactive Thread Starter

    Joined:
    2011/08/09
    Messages:
    17
    Likes Received:
    0
    Yesterday I changed the value of the system variable 'path' by accident.
    Then no matter what I typed in the cmd, it just told me that the command is not recognized as an internal or external one.:(
    Anyone could help?
     
  2. 2011/10/26
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    Use system restore to before yesterday.
     

  3. to hide this advert.

  4. 2011/10/26
    Galaxyview

    Galaxyview Inactive Thread Starter

    Joined:
    2011/08/09
    Messages:
    17
    Likes Received:
    0
    Thanks for your help.
    But is there any other way? Such as changing the value of "path" back?
     
    Last edited: 2011/10/26
  5. 2011/10/26
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
  6. 2011/10/26
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Following on from Broni's advice...

    Why, I mean why are you messing with system variables?

    At the very least you should know how to recover/restore them if you mess up (as you obviously have done so).
     
  7. 2011/10/26
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,038
    Likes Received:
    174
    You can always Add more directories to the path, never ever delete anything which is already there unless you have added it. The same goes for all other system variables.
     
  8. 2011/10/27
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412
    The default path variable is %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

    Now, when you enter this you can still have software that no longer works. Some software will add their own path to the statement, so going with a system restore is probably the better way.

    For example, my path variable looks like this:

     
    Arie,
    #7
  9. 2011/10/27
    Galaxyview

    Galaxyview Inactive Thread Starter

    Joined:
    2011/08/09
    Messages:
    17
    Likes Received:
    0

    I just installed MinGW in my system. And in order to enable it to compile my programs, I created a "Path" variable. I just didn't know that it would change the previous one.:(
     
  10. 2011/10/27
    Galaxyview

    Galaxyview Inactive Thread Starter

    Joined:
    2011/08/09
    Messages:
    17
    Likes Received:
    0
    I added this
    in the value of 'path'. And my cmd works now.
    But when I tried to restore my system, it said that I haven't created any restore point. So I clicked 'System Protection' , and another problem came out.
    :confused:What's wrong this time?
     
  11. 2011/10/27
    Arie

    Arie Administrator Administrator Staff

    Joined:
    2001/12/27
    Messages:
    15,174
    Likes Received:
    412

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.