Tuesday, January 13, 2009

Find Host that respond pings

Easy script to find hosts that respond to pings:

FOR /L %%V in (1,1,100) DO ping -w 30 -n 1 10.1.1.%%V |findstr /I Reply >> up.txt

Put this in a batch file.

For more info on the command "for" type : for /? in a cmd.exe box ;)