Command to know the Used IP address in a network September 19, 2013 FOR /L %i IN (1,1,254) DO ping -a -n 1 192.168.X.%i | FIND /i "Reply">> c:\ipaddresses.txt change X value with your ip series address (192.168.X) Read more