@echo off if %1!==! goto help if %1!==/?! goto help echo. echo Pinging %1.1 - %1.254 (this will take a little time). echo. for /l %%p in (1,1,254) do ping %1.%%p -n 1 -w 10 | find /i "reply" echo. echo Done. echo. goto end :help echo. echo Please specify the subnet you wish to ping. echo. echo "PingC 192.168.0" echo - pings 192.168.0.1 - 192.168.0.254 echo. :end