Ping命令各种骚操作

命令1:
for /L %D in (1,1,255) do ping 10.168.1.%D

命令2:
for /L %D in (1,1,255) do ping -n 10.168.1.%D >>a.txt

命令3:
for /l %D in (1,1,255) do (ping 192.168.1.%D -n 1 && echo 192.168.1.%D>>ok.txt || echo 192.168.1.%D >>no.txt)

命令4:
for /f %D in (ip.txt) do (ping %D -n 1 && echo %i>>ok.txt || echo %D >>no.txt)