在windows命令行批量ping局域网内IP

命令:for /L %i in (1,1,254) do ping -n 1 -w 60 192.168.0.%i | find  "回复" >> resultip.txt