我正在寻找创建一个连续的ping批处理文件:
欣赏它!
答案 0 :(得分:0)
在这里,你应该这样做。
@echo off
:start
Echo Enter Server IP:
set /p ip=
:ping
ping %ip% -n 1 -w 2000 || goto pingFail
echo Ping was Successful to %ip% at %date% %time%
Choice /m "Ping Another Server?"
if %ERRORLEVEL%==2 GOTO :EOF
cls
goto start
:pingFail
Echo Ping failed...Retrying...
goto ping