Solved

'ping' is not recognized as an internal or external command, operable program or batch file.

Posted on 2006-07-19
4
6,319 Views
Last Modified: 2012-06-27

I am running Windows XP Pro.  I seem to be having a problem calling windows utilities from a command line, for example ping, tracert, ipconfig, etc....

Ping (or any other system32 exes) are not recognized from any folder other than system32.  My path seemed
fine, but I removed all other references from it besides C:\Windows and C:\Windows\system32 and rebooted,
just to ensure there was nothing else causing the problem.

Ping.exe (and all others) still exist, and are working correctly from within the system32 folder.

Below is an demonstration of what is happening:

C:\>ping 127.0.0.1
'ping' is not recognized as an internal or external command,
operable program or batch file.

C:\>cd WINDOWS\system32

C:\WINDOWS\system32>ping 127.0.0.1

Pinging 127.0.0.1 with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\WINDOWS\system32>path
PATH=C:\WINDOWS; C:\WINDOWS\system32;



I would prefer not to have to reload the machine if at all possible.

Thank you in advance for any help.
0
Comment
Question by:Crossroads305
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
Kenneniah earned 500 total points
ID: 17139307
You have a space in your path.
PATH=C:\WINDOWS; C:\WINDOWS\system32;
Should be...
PATH=C:\WINDOWS;C:\WINDOWS\system32;
0
 
LVL 1

Author Comment

by:Crossroads305
ID: 17139360
If only you could see the mark I just made from slapping myself in the forehead.....

Thank you.
0
 
LVL 7

Expert Comment

by:puter_geek
ID: 17139384
ok, I have seen this before and you may have underlying problems that are causing this.  Go into your System32 folder and click on Tools>Folder Options>and Check Show Hidden Files and Folders, and go a couple more down and uncheck "Hide Protected Operating System Files", Apply,Ok.  Now, scroll down to ping.exe.  If I remember right(and you have the same problem as I), there are 2 different ping files.  One is either hidden or isn't an exe.  Delete it.  Leaving only the ping.exe.
0
 
LVL 24

Expert Comment

by:Kenneniah
ID: 17139669
"If only you could see the mark I just made from slapping myself in the forehead....."
I tend to get a lot of those marks myself each day :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question