Sign in with
Sign up | Sign in
Your question

CMD commands not working

Last response: in Windows 7
Share
March 9, 2011 9:34:21 AM

Hello, when I type a command in the CMD I get a message saying that the command is not recognized as a internal, external etc.

I've searched online for some answers and PATH seems to be the problem for most people. I have done PATH in CMD and C:\Windows\System32 is in there. Here's the output that from PATH:

PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Window
s;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Progra
m Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Window
s Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Tcl\bin;C:\Program F
iles (x86)\Nmap

I can see ping.exe in the folder to so I'm at a loss here.
Any ideas?

Regards
Eric

More about : cmd commands working

a c 372 $ Windows 7
March 9, 2011 1:04:55 PM

So ping does not work? Type the command exactly how you are typing it in the command prompt window. How are you starting the CMD window? Batch file, or typing it in manually? Are you starting it from a network homepath? What is the prompt you get in the window, is it "C:\>"?

Have you tried any other commads? DIR, IPCONFIG and such work or same message?
March 9, 2011 4:20:02 PM

hang-the-9 said:
So ping does not work? Type the command exactly how you are typing it in the command prompt window. How are you starting the CMD window? Batch file, or typing it in manually? Are you starting it from a network homepath? What is the prompt you get in the window, is it "C:\>"?

Have you tried any other commads? DIR, IPCONFIG and such work or same message?


Yes sorry should have clarified that PING, IPCONFIG even HELP doesn't work. When I type in DIR it gives me the underlying folders, so it seems to work.

To start CMD I go to start--->run-->cmd then enter. The prompt says C:\Users\PackardBell
Related resources
a c 372 $ Windows 7
March 9, 2011 4:36:26 PM

In the prompt, type in C: hit enter. Then try the commands, do they work then?

You do have the correct PATH listings. Can you type in the full path to the commands and do they run properly then? Say "C:\Windows\System32\ping"
March 9, 2011 4:42:04 PM

If I do C:\Windows\System32\ping.exe google.com it now pings google.

Changing to C: doesn't work.
December 10, 2012 6:07:34 PM

Hello, when I type a command in the CMD I get a message saying that the command is not recognized as a internal, external etc.
for eg help pc give above error
but i open command prompt with administrator then its work what to do
a b $ Windows 7
December 11, 2012 3:29:31 AM

To make sure the path is correct in Environment variables try the following:
1. Click on Start
2. Right click on Computer
3. Click on Properties
4. Click on Advanced System Settings
5. Click on Environment Variables
6. Under System variables scroll down until you see Path
What do you see to the right of Path?

After you type in cmd and before pressing enter you could try right clicking on cmd (after it appears in the list) and selecting "Run as administrator" to see if that makes a difference. If the commands still do not run then there is a problem with the path.
May 2, 2013 7:02:45 PM

kenrivers, i see C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Users\Recipient\AppData\Local\Smartbar\Application\
August 21, 2013 3:30:57 PM

Change to: C:\Windows\System32\
This worked for me however it may not if you have more than one hard drive. In that case go through them typing in that same address but change the "C" to what it's called. You can find out the drive name by going into Start Menu > Computer
It will say something like Drive2(U:) 
August 21, 2013 3:32:21 PM

Oops the last thing came up as a smile. I meant to write (U: ) but there's no space inbetween the colon and close bracket ")"
December 17, 2013 12:14:38 PM

Call me stupid, but have you tried running as an admin by right clicking and running as administrator, this worked for me, if you open using run you may need to find the file location because i don't think you can run as admin using run. when i had this problem only specific commands worked so that's what made me think you have this problem, that's all i can think of that hasn't been said so far.
February 23, 2014 4:19:27 AM

right click in computer, select properties, left click system protection, now select advanced tab under system properties and click environment variables. click new, variable name is Path and variable value is your system32 in your drive C:

should be like this : C:\Windows\System32
now click ok..


i hope this would work in your system.
April 22, 2014 4:37:51 AM

I had this problem too. Changing the PATH variable to E:\Windows\System32\ seems to have fixed it. I also have a few other values, like for the Java JDK. So I didn't delete all the other values, just added the one stated previously, seperating different values with a semicolin.
!