我正在尝试在 Windows 中运行此命令:
ping -n 5 127.0.0.1 > nul
我得到错误:
'ping' is not recognized as an internal or external command operable
program or batch fie.
为什么windows找不到ping? 这是我的脚本不起作用的地方:
@ECHO OFF
::set path
SET path=M:\\5.bmp
:findfile
IF EXIST %path% (
ECHO File found
) ELSE (
ECHO File not found
ping -n 5 127.0.0.1 > nul
goto findfile
)