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

Wai*_*Wai 7 windows ping batch-file command-prompt system32

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

这是一个例子:

命令提示符Ping

然后:

错误命令提示符

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

WINDOWS 7 BTW和64位

有一些在线教程说要查找Systems32.而那甚至没有出现!在搜索图像那里---> 在这里输入图像描述 我也重新启动了我的电脑(很多次)

我有这个超过6个月的时间,这真的让我很烦恼.

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

Sco*_*t C 24

很可能是某些东西已从您的路径中删除了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
Run Code Online (Sandbox Code Playgroud)


Ste*_*eve 6

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

编辑:转到下方C:\Windows\System32以查找PING.EXE您是否使用 32 位。