CODE: [Copy to clipboard]@for /l %%b in (1,1,254) do @ping 192.168.1.%%b -n 1 -l 1 >nul && echo 192.168.1.%%b >>aaaa.txt