As we all know, the ping command is a very practical network command; sometimes, we will find that the ping command cannot be used on the computer. Generally speaking, it is due to a problem with the computer's environment variables. This article will introduce how to solve this problem. .
Tools/Materials
Methods/Steps
Generally, the ping command cannot be used, as shown in the figure:
The situation where the ping command cannot be used is basically caused by "environment variables". Checking the environment variable path, I found that "C:WindowsSystem32" is not configured:
Right-click the "Computer" icon on the desktop (XP system is my computer) - click "Properties" - the interface that opens is as shown:
Click "Advanced System Settings"--Open the "System Properties" window--Click the "Environment Variables" button:
Find the "Path" item in "System Variables"- - Double-click:
Append "C:WindowsSystem32" to "Path", and then "Confirm" all the way.
The environment variable path is set and can be viewed in the cmd window:
At this point, The ping command can be used normally again:
The above introduces the inability to use ping and other commands under command line DOS, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.