for /l %%i in (0,1,255) do ping -w 1 -n 1 192.168.24.%%i && arp -a 192.168.24.%%i >> IP_address.txt