batch file to ping range of IP addresses

by ebarcza 4/24/2011 4:52:00 PM

Heres a really simple way to start, enter this in a command line...

 

C:\Users\SevenStoryMountain>FOR /L %i IN (1,1,254) DO ping -n 1 192.168.1.%i | FIND /i "Reply">>ipaddresses.txt

 

this Script outputs ping results to ipaddresses.txt so you can easily see what IP addresses are being used on the network.

 

Make sure its run from a directory you have permissions to write to, otherwise specify a good path after the >>

Tags: , ,

batch files

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  July 2017  >>
MoTuWeThFrSaSu
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in