for /L %i in (开始,间隔,结束) do ping -n 1 -2 60 IP地址 %是代表该段所有地址 | find "回复" >> 结果.txt
for /L %i in (1,1,255) do ping -n 1 -w 60 192.168.1.%i | find "回复" >>pingall.txt
for /L %i in (开始,间隔,结束) do ping -n 1 -2 60 IP地址 %是代表该段所有地址 | find "回复" >> 结果.txt
for /L %i in (1,1,255) do ping -n 1 -w 60 192.168.1.%i | find "回复" >>pingall.txt