for /l %%1 in (1 1 255)do ping /n 1 192.168.1.%%1 ##bat下 运行
for /l %i in (1,1,254) do ping -n 2 -w 60 61.243.95.%i ## 命令行下运行
@echo off color e title 批处理扫网段主机 echo. @for /f "tokens=1-4 delims=." %%i in (ip.txt) do (@for /l %%n in (1,1,255) do @ping -w 600 -n 1 %%i.%%j.%%k.%%n|find /i "ttl") echo.&echo 扫描完毕,按任意键退出...&pause>nul