当我执行 ping www.google.com
时,我收到了错误消息
'ping' is not recognized as an internal or external command operable program or batch file.
这是一个例子:
然后:
我做错了什么?
我使用的是 Windows 7,64 位
网上有一些教程说要查找Systems32。那甚至没有出现。在搜索图片那里
我也重启了电脑
我已经有 6 个多月了,它真的开始给我带来问题。
此外,如果您认为这是题外话,请先解释一下 :P
很可能是某些东西从您的路径中删除了 system32 目录。你有没有安装Java SDK?它以这样做而闻名。
要检查这一点,请在命令提示符下键入 path
(然后按 enter)
如果 c:\windows\system32 不存在,则需要重新添加它。要执行此操作:
From the desktop, Right click 'Computer', click 'Properties'
then click 'Advanced system settings'
- this should bring up the System Properties - Advanced tab
Click 'Enviornment Variables'
Select the system variables 'PATH'
Edit PATH and add this line to the front
c:\windows\system32;
or to be generic (in case you've installed windows on a different drive)
%SystemRoot%\system32
Start a new command window to check if this has worked (or reboot)
existing command windows will use the old path