'ping'不被识别为内部或外部命令可操作程序或批处理文件错误[关闭]

问题描述 投票:7回答:2

当我“ping www.otbotweb.com”时,我得到:'ping'不被识别为内部或外部命令可操作程序或批处理文件错误。

这是一个例子:

然后:

所以为什么?我做错了什么错了?

WINDOWS 7 BTW和64位

有一些在线教程说要查找Systems32。而那甚至没有出现!在搜索图像那里---> enter image description here我也重新启动了我的电脑(很多次)

我有超过6个月的时间,这真的开始给我带来麻烦。

如果您认为这是偏离主题,请首先解释:P

windows batch-file command-prompt ping system32
2个回答
23
投票

很可能是某些东西已从您的路径中删除了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

4
投票

假设您正在使用Win 64位版本的Windows。转到C:\ Windows \ SysWOW64下,查看是否可以在该文件夹下找到PING.EXE。如果没有,请转到DL。某人或某物(病毒)可能已将其删除

编辑:如果你使用32位,去C:\ Windows \ System32下找到PING.EXE。

© www.soinside.com 2019 - 2024. All rights reserved.