cmd 查询空闲IP

来源:互联网 发布:c语言编写计算器 编辑:程序博客网 时间:2024/05/17 06:22

查询空闲IP

@Echo off
date /t > IPList.txt
time /t >> IPList.txt

echo =========== >> IPList.txt
For /L %%f in (1,1,71) Do Ping -n 1 -w 50 10.141.71.%%f | Find "Request timed out." &&echo 10.141.71.%%f Timed Out >> IPList.txt &&echo Off
cls
Echo Finished!


@Echo on
Notepad.exe IPList.txt

原创粉丝点击