Open vieyahn2017 opened 2 years ago
rem ping test, need ip.txt
@echo off
for /f %%i in (ip.txt) do (
(ping -n 2 -w 300 %%i | find "TTL" > nul) && echo %%i reachable || echo %%i unreachable
)
pause
rem ping test, need ip.txt
@echo off
for /f %%i in (ip.txt) do (
ping -n 2 -w 300 %%i > nul
if ERRORLEVEL 1 (
echo %%i unreachable
) else (
(curl -k -s https://%%i/login.html | find "html" > nul) && echo %%i web reachable || echo %%i reachable but web unreachable
)
)
pause