RSS

遇到常见命令突然显示无法识别的解决办法

17 Mar

有xp客户端突然说在安装完某应用后,出现无法运行ping,或者ipconfig的问题。

进入客户端,cmd下运行如下程序

‘ping’ is not recognized as an internal or external command
‘defrag’ is not recognized as an internal or external command
‘ipconfig’ is not recognized as an internal or external command

第一反应是这几个命令被删除了。

到%windir%\system32下查看上述命令发现没有消失。

第二反应就是这是系统path变量被非正常修改

右击我的电脑,属性,高级,环境变量,找到path,修改其为默认的

"%SystemRoot%\system32;%SystemRoot%

或者在最前面添加

%SystemRoot%\system32;%SystemRoot%;

一路ok后,再次运行ping等命令就可以了。

下面是英文版

For Windows XP:
Right click "My Computer" and click "Properties". Click the "Advanced" tab up top followed by the "Environment Variables" button at the bottom. In the 2nd list box, scroll down to the 5th or 6th entry "Path", select it and click "Edit". Add "%SystemRoot%\system32;%SystemRoot%;" (minus the quotes) to the beginning of the line. Okay the changes and try out your commands now.

随便推荐一个快速修改的软件

Advertisements
 
1 Comment

Posted by on March 17, 2009 in Windows Server

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: