Originally posted here by kyrios
C:\Documents and Settings\Kyri0s>ping -n 1 192.168.1 156
Bad parameter 156.
You forgot the dot between 192.168.1 and %i.

Code:
for /L %i in (1,1,254) do ping -n 1 192.168.1.%i