Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can not print to new C554e from Windows XP Workstations... News at 11 8 160
Hyper V vm 4 132
Need a bootable CD to delete a Linux partition ... 9 137
symbolic link problem 6 91
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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

770 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