When you are try to ping some destination IP address and if you are getting above mentioned error, you can follow these steps to resolve this.
This error will be prompt when you try to run Ping, tracert (trace route), etc..
Go in to Advanced system settings in your PC
Then Click Advanced and select Environment Variables.
Then Select 'PATH' from the list of system variables and edit and set PATH to c:\windows\system32
Hope this will help you to solve your problem
If not you can use below mentioned command to make it work,
first go to CMD and type,
After successfully enter those commands you are able to use "ping" command.