您的位置:首页 > 其它

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

2015-03-11 17:03 911 查看
英文系统出现:
'ping' is not recognized as an internal or external command, operable program or batch file
[b]中文系统出现:[/b]

'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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐