一点点东东
@echo off
echo ----------------------------------
echo -请输入IP段,暂时只支持单个段的IP -
echo -例如:192.168.1 -
echo ----------------------------------
set /p ipd=请输入:
echo %ipd%
for /l %%i in (1,1,255) do (
set a=%%i
cls&&call :show
)
cls&&call :show
pause
goto q
:show
echo ----------------------------------
echo 当前ip: %ipd%.%a%
echo 可以ping通的ip:
echo %x%
echo ----------------------------------
ping %ipd%.%a% -n 1 -l 1 -w 1 >nul &&set x=%x% %ipd%.%a%
:q