windows 'ping' 不是内部或外部命令可操作的程序或批处理文件错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26246867/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
'ping' is not recognized as an internal or external command operable program or batch file error
提问by Wai
When I do "ping www.otbotweb.com" I get: 'ping' is not recognized as an internal or external command operable program or batch file error.
当我执行 "ping www.otbotweb.com" 时,我得到:'ping' 未被识别为内部或外部命令可操作程序或批处理文件错误。
Here is an example:
下面是一个例子:
Then:
然后:
So why? What is wrong am i doing it wrong?
所以为什么?我做错了什么?
WINDOWS 7 BTW AND 64 Bit
WINDOWS 7 BTW 和 64 位
There was some tutorial online that said to look up Systems32. And that didnt even show up! In the search at the image there--->enter image description hereI have also restarted my computer (MANY MANY TIMES)
网上有一些教程说要查找 Systems32。那甚至没有出现!在那里的图像搜索中--->在此处输入图像描述我也重新启动了我的计算机(很多次)
I've had this for over 6 months and its really begginning to cause me problems.
我已经有这个超过 6 个月了,它真的开始给我带来问题。
Also if you believe this is off topic please explain first :P
另外,如果您认为这是题外话,请先解释一下:P
回答by Scott C
Most likely something has removed the system32 directory from your path. Have you installed the Java SDK? It has a reputation for doing that.
很可能是某些东西从您的路径中删除了 system32 目录。您是否安装了 Java SDK?它以这样做而闻名。
To check this, at the command prompt type path
(followed by enter)
要检查这一点,请在命令提示符下键入path
(后跟输入)
If c:\windows\system32 isn't there, it needs to be added back in. To do this:
如果 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
回答by Steve
Assuming you are using Win 64bit version of windows. Go under C:\Windows\SysWOW64 and see if you can find PING.EXE under the folder. If not, go DL one. Someone or something(virus) might have deleted it
假设您使用的是 Win 64 位版本的 Windows。转到 C:\Windows\SysWOW64 下,看看是否可以在文件夹下找到 PING.EXE。如果没有,去 DL 一。某人或某物(病毒)可能已将其删除
Edited: Go under C:\Windows\System32 to find PING.EXE if you are using 32 bit.
编辑:如果您使用的是 32 位,请在 C:\Windows\System32 下找到 PING.EXE。