

How to solve the error message 'ping is not recognized as an internal or external command or an operable program'
Solution: 1. Click the "Start" button, click "Control Panel" - "System" in the start menu; 2. In the settings interface, click "Advanced System Settings" - "Advanced" - "Environment Variables"; 3. Check whether there is a Path variable in Administrator's user variables. If you do not see this variable, click "New" and add the variable Path and variable value.
The operating environment of this tutorial: Windows 10 system, Dell G3 computer.
ping (Packet Internet Groper) is an Internet packet explorer, a program used to test the amount of network connections. Ping is a service command that works at the application layer in the TCP/IP network architecture. It mainly sends ICMP (Internet Control Message Protocol) Echo request messages to a specific destination host to test whether the destination station is reachable and Learn about its status.
But if the Windows system computer/server prompts "ping is not an internal or external command, nor is it an operable program or batch file" when running the CMD command prompt.
What should you do if you encounter this situation? The answer is: Reconfigure the system environment variables.
Solution
1. Click the "Start" button, click "Control Panel" - "System" in the start menu
2. Advanced system settings - Advanced - Environment variables (after the shortcut key win r calls up the run, enter sysdm.cpl and press Enter to quickly open the system properties)
3. Check whether there is a Path variable in Administrator's user variables. If you do not see this variable, click New - Add variable Path - Fill in the variable value:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Fill in and click Confirm and try the cmd-ping command again
Extended knowledge: System environment variables
Environment variables variables) generally refers to some parameters used in the operating system to specify the operating environment of the operating system, such as: temporary folder location and system folder location, etc.
An environment variable is an object with a specific name in the operating system, which contains information that will be used by one or more applications. For example, the path environment variable in Windows and DOS operating systems, when the system is asked to run a program without telling it the full path where the program is located, the system should not only look for the program in the current directory, but also go to the path specified in path. . Users can better run processes by setting environment variables.
Environment variables are divided into two categories: user variables and system variables, which have corresponding entries in the registry.
-
The location of the user variables is:
HKEY_CURRENT_USER\Environment;
-
The location of the system variables is:
\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of How to solve the error message 'ping is not recognized as an internal or external command or an operable program'. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Xbox consoles have improved dramatically over the years. Over the years, games have evolved with life-like features that gamers can't seem to get enough of. Playing your favorite games on Xbox can be a completely engrossing experience. However, sometimes using these advanced features, we end up with lag or ping issues if the internet speed is not that good. Sometimes we want games to download faster. Today, games like Forza Horizon 5 and Mortal Kombat require over 100GB of RAM. Downloading such games can take a long time if we don't have the right internet settings to help us. Method 1: Pass

The reasons for the ping request timeout include unreachable target host, network congestion, firewall or security settings, and DNS resolution issues. Detailed introduction: 1. The target host is unreachable. The Ping request timeout may mean that the target host cannot be accessed through the network. This may be due to the target host closing the network connection, the network where the target host is located failing, the target host IP address being set incorrectly, etc. ; 2. Network congestion. Ping request timeout may also be caused by network congestion. Network congestion may be due to large amounts of data transmission, network equipment failures, etc.

The network cannot ping, what's going on? In fact, this is a very common problem. It is mainly divided into two situations: pinging fails on the same network segment and pinging fails on different network segments. Let’s take a look at the details below. There are usually two reasons why the ping command cannot connect to the same network segment: one is an IP address that cannot be pinged in the same network segment, and the other is an IP address that cannot be pinged in a different network segment. These two situations have different solutions. First, let’s discuss the situation where ping fails within the same network segment. 1. Ping fails on the same network segment, and the result is "Unable to access the target host." The destination IP and source IP are on the same network segment, and the ping result is &l

Solution: 1. Click the "Start" button, click "Control Panel" - "System" in the start menu; 2. In the settings interface, click "Advanced System Settings" - "Advanced" - "Environment Variables"; 3. . Check whether there is a Path variable in Administrator's user variables. If you do not see this variable, click "New" and add the variable Path and variable value.

The reasons why the IP address cannot be pinged are: 1. The other party is shut down or the IP address does not exist; 2. The network segment is different and cannot be found through routing; 3. The firewall filters the ICMP packets sent by ping; 4. The IP address is set incorrectly; 5. Network cable failure; 6. The gateway is not set.

The type of some operating systems can often be roughly judged by the ttl value of ping. Here is a summary: The TTL field value of the ICMP echo response of UNIX and UNIX-like operating systems is 255. CompaqTru645.0 The TTL field value of the ICMP echo response is 64. The TTL field value of the ICMP echo response of the Microsoft Windows NT/2K operating system is 128. The TTL field value of the ICMP echo response of the Microsoft Windows 95 operating system is 32. Of course, these ttl values can also be changed. Windows series systems can modify the following key values in the registry. Implementation: [HKEY_LOCAL_MACHINE\system\Curren

I found that there are quite a lot of ping commands under Linux. Here are a few examples: 1. pingwww.baidu.com, the roughest usage. At this time, the host will continue to send ICMPechorequest packets to the destination address until you press Ctrl +c2, ping-Ieth0www.baidu.com or ping-I192.168.8.151www.baidu.com, that is, the -I option can specify the network card that sends the ping packet. -I can be followed by the network card name or the IP address of the network card. 3. Ping-c3www.baidu.com, the -c option can specify how many ICMP packets to send, and you can see the host connection

Ping is a computer network tool used to test connectivity between hosts. By sending ICMP echo request messages to determine whether the target host is reachable, and measuring indicators such as round-trip delay time and packet loss rate, ping can help programmers diagnose network problems, optimize network performance, and ensure the stability of network connections.