@echo off
set /p var=192.168.XXX.1 XXX=?:
echo search....
for /l %%i in (1,1,255) do ping -n 1 -w 10 192.168.%var%.%%i > nul & if errorlevel 1 ( echo 192.168.%var%.%%i X ) else echo 192.168.%var%.%%i O & echo 192.168.%var%.%%i >> ping.txt
type ping.txt
pause
沒有留言:
張貼留言