Home > Backend Development > PHP Tutorial > Commands such as ping cannot be used under command line DOS

Commands such as ping cannot be used under command line DOS

WBOY
Release: 2016-08-08 09:19:48
Original
1434 people have browsed it

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

  • windows environment

    Methods/Steps

    1. Generally, the ping command cannot be used, as shown in the figure:

      Commands such as ping cannot be used under command line DOS
    2. 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:

      Commands such as ping cannot be used under command line DOS
    3. Right-click the "Computer" icon on the desktop (XP system is my computer) - click "Properties" - the interface that opens is as shown:

      Commands such as ping cannot be used under command line DOS
    4. Click "Advanced System Settings"--Open the "System Properties" window--Click the "Environment Variables" button:

      Commands such as ping cannot be used under command line DOS
    5. Find the "Path" item in "System Variables"- - Double-click:

      Commands such as ping cannot be used under command line DOS
    6. Append "C:WindowsSystem32" to "Path", and then "Confirm" all the way.

      Commands such as ping cannot be used under command line DOS
    7. The environment variable path is set and can be viewed in the cmd window:

      Commands such as ping cannot be used under command line DOS
    8. At this point, The ping command can be used normally again:

      Commands such as ping cannot be used under command line DOS

      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.

Related labels:
source:php.cn
Previous article:Thinkphp 32 Nginx pseudo-static writing method, the latest effective in July 2015 Next article:PHP reads large files
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template