解决windows的dos下某些命令例如ping、telnet、more 不是内部或外部命令(is not recognized as an internal or external command)

英文系统出现:
'ping' is not recognized as an internal or external command, operable program or batch file
中文系统出现:

'ping'不是内部或外部命令,也不是可运行的程序或批处理文件。


问题原因及解决:

1.环境变量没配置:

解决方法:我的电脑(右键)--电脑属性--高级---环境变量---在PATH变量值最后加入  ;C:\windows\system32   ,即命令文件所在文件夹。也可以在PATH变量值最后加入 ;%SystemRoot%\system32 ,如果你的系统不是在C盘安装的话。

2.文件丢失:在该文件夹C:\windows\system32下找不到ping.exe。

解决方法:从其他人电脑上拷贝ping.exe到本人电脑C:\windows\system32

3.文件扩展名配置丢失或没有:

解决方法:我的电脑(右键)--电脑属性--高级---环境变量---在PATHEXT变量后加入.exe。如果你的more命令无法识别了,要在PATHEXT变量后加入 .com,因为在C:\windows\system32中,more对应的文件是more.com。

发布了13 篇原创文章 · 获赞 0 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/logao2012/article/details/44201369