@echo off
setlocal enabledelayedexpansion
set IP_PREFIX=192.168.0.
for /l %%i in (1,1,254) do (
set IP=!IP_PREFIX!%%i
ping -n 1 -w 100 !IP! | findstr "TTL"
if !errorlevel! equ 0 (
echo !IP! is up.
)
)
endlocal
© 版权声明
文章版权归作者所有,转载请预留文章地址。s.wbsun.net
THE END
暂无评论内容