footmarks106 当前离线
列兵
TOP
andyrave 当前离线
二级士官
@echo off for /f "delims=" %%a in (ip.txt) do ( for /f "tokens=2 delims= " %%i in ('ping /n 1 %%a ^|findstr /i /c:"TTL="') do ( call echo %%i>>通.txt ) ) findstr /i /v /g:通.txt ip.txt >不通.txt pause复制代码
CrLf 当前离线
论坛巡查
@echo off for /f "delims=" %%a in (ip.txt) do ping /n 1 %%a&&echo>ping通.txt %%a||echo 2>ping不通.txt %%a复制代码