win 测试内网中所有连接设备

1
for /l %i in (1,1,255) do ping -n 1 -w 60 192.168.1.%i | find "回复" >> pingall.txt