SyntaxFix
Write A Post
Hire A Developer
Questions
This might fit the bill for later Windows versions:
for /l %i in (1,0,2) do @echo|cmd /v:on /c set /p=!time! & ping -n 1 10.21.11.81 | findstr "Reply timed" && timeout /t 2 > nul: