Tom's Guide | Tom's Hardware | Tom's Games | PC Safety Suite
![]() |
![]() |
![]() |
Comment:
Hi.. for some odd reason when I enter command.com.. and type in
ping google.com
it says:
`PING` is not a internal or external command.That is the same for all the `net` commands also, but the basic ones like `cd` work.
Andew Rosolino
+1 | ![]() |
try start-run-type CMD,enter. try ping google.com.
Please post back within 24 hours or I will delete the post from my follow up list. Thanks. It would be a courtesy if you would post back and let us know if the fix worked or not.
+1 | ![]() |
Same error
`ping` is not recognized as an internal or external command, operable program or batch file.
Andew Rosolino
+1 | ![]() |
Ping isn't a command, it's a program and you should be able to call it from within command.com. Do a search for ping.exe to make sure it's actually there (should be in the windows\system32 directory).
If it's there, you may have a problem with your PATH. Does the following command work?:
%systemroot%\system32\ping.exe www.google.com
+1 | ![]() |
Ok yes
%systemroot%\system32\ping.exe www.google.com
This works.. so I guess the path isn't set for that command, now can you guide me where these paths are met?
Andew Rosolino
+1 | ![]() |
Umm that didn't help much... I did this
set ping=%systemroot%\system32\ping.exe
and it still didnt work, I dont know what im doing, also im afraid there is just a load of other commands missing like I said earliar the net commands.
Andew Rosolino
+1 | ![]() |
Right-click on My Computer and get Properties, then click on the Advanced tab. Click the 'Environment Variables' button on the bottom. In the new dialog box, in the lower section (System Variables), find 'Path', highlight it, then click the edit button. The following two strings should be in there:
%systemroot%
%systemroot%\system32If they're not there, add them in, separated by semicolons(;). If there is already text in there, put a semicolon at the end before adding the two above.
+1 | ![]() |
This is in there..
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\NMapWin\\bin;C:\hl
Andew Rosolino
+1 | ![]() |
A shame. If it had been missing, it would have made for an easy fix. Just curious, if you type 'path' from the command prompt, does c:\windows\system32 show up in there?
The only other thing I can think of right now is to to check what's in PATHEXT (in the same list where you were looking at PATH). Make sure .exe is in that list.
If I come across anything else to try, I'll post again.
+1 | ![]() |
I came across two more things you may want to check.
First, use regedit (start>run, type in regedit), and navigate to the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control \SessionManager\Environment. Find the path entry and verify that its 'type' is REG_EXPAND_SZ, not REG_SZ. Post back if it's not the type it should be.
Second, back where you were looking at the PATH data before, in the upper section, under 'User Variables', check what's in the path there. If there is anything there, copy and paste it into a text file. Save the text file, and then delete the data that was in there. Reboot the system and see if there's a change. If not, go back to the text file, get the data and paste it back in from where you deleted it. If this does work, you may have to move some of that info into the system variable for path instead of the user one.
Also, if you know that this problem is recent, you could try doing a system restore to a point before when it occurred.
If none of this works, you'll have to hope someone else jumps in :).
+1 | ![]() |
OK, first go into your System Restore and create a restore point (just in case).
Then go back into the registry key and double click on 'path'. Copy whatever's in there and paste it into notepad and save. Then right click on the 'path' value and delete it.
Up top, click on Edit, then go to New>Expandable Sting Value. Call it Path. Then double click on it and paste in what you copied from the old path value.
Reboot and try ping again from the command prompt.
If it's still not working, try the second thing I mentioned in my last post.
+1 | ![]() |
Thanks HiJinx...you're the man. I Googled with the 'ping' error message and your responses came up. Your suggestions fixed the problem on two computers that had this trouble. Best wishes, dude. Appreciate it.
![]() |
Auto Correct on Internet ...
|
TMPGenc help
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.