10

当我这样做时,ping www.google.com我收到错误消息

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

这是一个例子:

命令提示符 Ping

然后:

错误命令提示

我可能做错了什么?

我正在使用 Windows 7、64 位

网上有一些教程说要查找Systems32。这甚至没有出现。在图像搜索中

窗口菜单按钮

我也重启了电脑

我已经有这个超过 6 个月了,它真的开始给我带来问题。

另外,如果您认为这是题外话,请先解释一下:P

4

2 回答 2

28

很可能某些东西已从您的路径中删除了 system32 目录。您是否安装了 Java SDK?它以这样做而闻名。

要检查这一点,请在命令提示符下键入path(后跟回车)

如果 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
于 2014-10-07T23:37:58.313 回答
6

假设您使用的是 Win 64 位版本的 windows。去下面C:\Windows\SysWOW64看看能不能PING.EXE在文件夹下找到。如果没有,去下载一个。某人或某事(病毒)可能已将其删除

已编辑:查看C:\Windows\System32PING.EXE是否使用 32 位。

于 2014-10-07T23:28:18.140 回答