Solved

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

Posted on 2006-07-19
4
6,210 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now