Quickie question on ip addresses

lein

Senior member
Mar 8, 2005
620
0
0
Can I ping a range of IP addresses on cmd?

example: I want to ping all the ip addresses from 192.168.1.1 to 192.168.1.254

How do I enter that in cmd prompt (if its possible)?

Thanks
 

velis

Senior member
Jul 28, 2005
600
14
81
if using Windows NT you can use the FOR command to call the ping with each successive IP.
See HELP FOR for further explanation.
I believe this should work: for %a in (1, 1, 254) do ping 192.168.1.%a