Question Locked

Batch file

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to make batch file for pinging multiple IP addresses. PLease let me know how to do that?

4 replies

by Member 25348569

For /L %i in (100,150,1) do ping 192.168.0.%i

The command line string above will ping from 192.168.0.100 to 192.168.0.150 sequentially. If you want to put it in a batch file, replace %i with %%i.

Neil :)

This discussion is closed to new replies.