5

For some reason, my Windows 7 computer does not recognise the cmd.exe tools ping and ipconfig. I have tried to download them from the web, but I can only find tools that do similar stuff; not the official ping and ipconfig.

Where can I get ping and ipconfig for my Windows 7? What could have caused those networking tools to not be part of my Windows 7? (Other tools I have tried are available.)

Randomblue
  • 3,585

3 Answers3

6

Firstly, check if your environment variables (can use set from cmd) contains a PATH variable with value C:\Windows\system32

This is the place ping.exe is in.

You an check if you can call C:\Windows\system32\ping.exe assuming C:\Windows is your windows installation directory.

Secondly, you can try running sfc /scannow from an elevated cmd (running as administrator).

Karan
  • 57,289
Ofiris
  • 1,997
0

Best guess here (it just happened to me): some recently installed software messed up with the PATH variable and your ping.exe, tracert, etc. are still there in Windows\system32. It's just that you don't run them without specifying the full path.

Just run a search on ping.exe, you should find it easily. If not and they got deleted, go to Control Panel > Programs and features > Turn Windows features on or off and disable, validate, then re-enable it. That should reinstall ping and tracert (as well as a few other standard tools)

0

Check your C:\Windows\System32 or whatever drive windows is installed on for ipconfig.exe. Does it exist? Possibly the account you are using does not have access or there is an issue with the environmental variables

Dave M
  • 13,250