@echo off
set /p ip="请输入IP地址段,格式如:"192.168.1." >>> "
for /L %%i in (1,1,254) do (
Ping.exe -n 1 -l 16 -w 100 %ip%%%i>>ipscan.txt
if not errorlevel 1 (echo %ip%%%i 可以ping通)
)
pause
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29551564/viewspace-2212528/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29551564/viewspace-2212528/