Ping is not an internal or external command problem. You can try to find out whether there is a problem with path in cd to system32. Check the problem, I can't repeat it and check if the path in the system variable does not contain this % systemroot % \ system32 www.2cto.com, set path indicates the combination of user variables and system variables. Path = S: \ WINDOWS \ system32; S: \ WINDOWS \ System32 \ Wbem; S: \ Program Files \ Di skeeper Corporation \ Diskeeper \; C: \ Program Files \ Microsoft Network Monitor 3 \; S: \ PRG; S: \ Shortcuts; C: \ Commands; D: \ Program Files \ Sysinternals; C: \ j2sdk1.4.1 \ bin; I: \ P Rogram Files \ Debugging Tools for Windows; www.2cto.com can be safely modified, but several paths cannot be modified. You can delete them one by one and check whether they can be used or not. Remember to restart the command prompt after the change to take effect.