Solved

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

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 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

8 Experts available now in Live!

Get 1:1 Help Now