Send a ping to each IP on a subnet

后端 未结 13 1184
时光说笑
时光说笑 2020-12-07 10:21

Is there a command line based way to send pings to each computer in a subnet? Like

for(int i = 1; i < 254; i++)
    ping(192.168.1.i);

t

相关标签:
13条回答
  • 2020-12-07 10:49
    FOR /L %i in (1,1,254) DO PING 192.168.1.%i -n 1 -w 100 | for /f "tokens=3 delims=: " %j in ('find /i "TTL="') do echo %j>>IPsOnline.txt
    
    0 讨论(0)
提交回复
热议问题