How do I get the “ping” command line in windows 7 to work..

Posted on 2013-06-20
Last Modified: 2013-06-20
I am getting the message that the “ping” is not a recognized program.
C:\>ping -a irvaruba
'ping' is not recognized as an internal or external command,
operable program or batch file.
Question by:frankbustos
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
LVL 23

Expert Comment

ID: 39264593
i.e    at a command prompt,    


LVL 24

Expert Comment

ID: 39264596
Try: Navigate to Winows\System32 directory (CD command). Then type ping ?

It looks like your PATH variable is messed up.
LVL 23

Expert Comment

ID: 39264600
You can ping right from the root,    cd\    takes you to root
Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.


Author Comment

ID: 39264603
aadih, ok that worked. How can I set it to that when I go to the command prompt it goes to that instead of just the root of c?
LVL 24

Accepted Solution

aadih earned 500 total points
ID: 39264604
To correct the Path variable, try:

Select Start, right click My Computer, select Properties. Next select the Advance tab, and Environment Variables button, and select the Path variable listed under System Variables.

 When editing it should include:


 Which translates to something like:


Author Comment

ID: 39264606
no i can't ping right from the root...

Author Closing Comment

ID: 39264608
awesome, that worked! thanks!
LVL 24

Expert Comment

ID: 39264612
Check your Path variable.

 Look here with pictures: >
LVL 14

Expert Comment

ID: 39264613
from cmd run

echo %path%

Open in new window

make sure 'C:\Windows\system32' is in the output

if not
go to control panel->system
advanced system settings (left side bar)
environment variables
find 'path' under system variables
add to the end ";%SystemRoot%\system32" (without quotes)

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vba code to check folder size doesn't work on Win 7 PC's 8 60
Windows Features blank 4 36
Desktop loading is delayed 38 48
SQL profiler 3 18
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

733 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