批处理ping一个网段地址
for /l %i in (1,1,255) do ping -n 1 -w 60 192.168.2.%i | find "已接收" >>d:\pingall.log
上面直接在cmd输入----
不要放在.bat批处理运行 运行不了
谁有正确的???????????引申需要一个类似的网络软件 python实现这种很简单??
回答:
C:\Users\lyd>for /L %D in (1,1,255) do ping 192.168.2.%D
https://blog.csdn.net/qq_43416206/article/details/124903040