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

标签 windows batch-file command-prompt ping system32

<分区>

当我执行 ping www.google.com 时,我收到了错误消息

'ping' is not recognized as an internal or external command operable program or batch file.

这是一个例子:

Command Prompt Ping

然后:

Error Command Prompt

我做错了什么?

我使用的是 Windows 7,64 位

网上有一些教程说要查找Systems32。那甚至没有出现。在搜索图片那里

Windows menu button

我也重启了电脑

我已经有 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

关于windows - 'ping' 不是内部或外部命令可运行程序或批处理文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26246867/

相关文章:

windows - 获取 DLL 文件的 CLSID?

powershell - 如何使用 PowerShell 处理 diskpart 命令的输出

variables - 不带值的批处理脚本 SET/p

node.js - 与 unix 命令 'ls -lah' 等效的 Windows 命令提示符是什么?

java - 如何使用命令提示符了解窗口服务的状态

windows - 从 Get-ChildItem -Path 返回对象数组

c# - Rijndael 加密在 Windows Server 2012 上不起作用

batch-file - 如何在一个bat文件中运行nmake

asp.net - asp.net中的命令提示符和asp中的执行文件

windows - Sbt 检索所需库时出错