This Batch scans (pings) IPs in the range 192.168.1.1 to 192.168.1.254.
@echo off for /l %%i in (1,1,254) do ( echo 192.168.1.%%i ping -n 1 -w 1