Cut the script below and save as scanip.bat
@echo off if .%1==. goto NONET rem batch file to scan ip sub-net rem pseudo class c address required rem eg 192.168.0 rem scan first 9 addresses: for %%z in (1 2 3 4 5 6 7 8 9) do ping -n 1 %1.%%z | arp -a | find "%1.%%z " rem batch files don't have x++ so use for to loop through digits and concantenate: rem scan .10 to .99 : for %%y in (1 2 3 4 5 6 7 8 9) do for %%x in (0 1 2 3 4 5 6 7 8 9) do ping -n 1 %1.%%y%%x | arp -a | find "%1.%%y%%x " rem scan .100 to .199 : for %%y in (0 1 2 3 4 5 6 7 8 9) do for %%x in (0 1 2 3 4 5 6 7 8 9) do ping -n 1 %1.1%%y%%x | arp -a | find "%1.1%%y%%x " rem scan .200 to .249 : for %%y in (0 1 2 3 4) do for %%x in (0 1 2 3 4 5 6 7 8 9) do ping -n 1 %1.2%%y%%x | arp -a | find "%1.2%%y%%x " rem finish last 5 addresses: for %%z in (250 251 252 253 254) do ping -n 1 %1.%%z | arp -a | find "%1.%%z " goto END :NONET echo The start of a pseudo class C address must be given eg echo %0 192.168.0 goto END :END