Command prompt not recognizing commands


  1. Posts : 4
    Windows 7 Home Premium 64bit
       #1

    Command prompt not recognizing commands


    Hello.

    It seems as if my command prompt will not let me do any simple system commands such as ping, ipconifg, etc. And it will also not let me use commands for my compiler. The paths are set properly in the environment variables, but it still does not work. See the screencap below:

    https://i.imgur.com/PTxx3fR.png

    I have no idea how this happened. The system has no viruses and is clean. Any help would be appreciated.
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    This is what I see for a path on a fresh install:
    C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\

    Try this from within a cmd prompt:
    C:\Windows\System32\ping,exe
      My Computer


  3. Posts : 4
    Windows 7 Home Premium 64bit
    Thread Starter
       #3

    The command you have there does indeed work. As does the the default commands such as cd, dir, etc.
      My Computer


  4. Posts : 10,485
    W7 Pro SP1 64bit
       #4

    Then maybe put this in as your path...
    Code:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
    ...and then add your other stuff to the end.

    Ping is just an app - not a command per se - like DIR.
      My Computer


  5. Posts : 4
    Windows 7 Home Premium 64bit
    Thread Starter
       #5

    That did it! I appreciate your help!
      My Computer


  6. Posts : 10,485
    W7 Pro SP1 64bit
       #6

    You are welcome.

    Please mark the thread as solved.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:41.
Find Us