@echo on
:loop
set /a c+=1
start /i /min ping -n 2 172.16.1.%c% && echo 172.16.1.%c% >>b:\ip.txt
if "%c%"=="20" exit
goto :loop
The above code fails to put the PING -successful IPs into ip.txt. Who can tell me why?
[ Last edited by 429499381 on 2007-8-14 at 03:22 PM ]
:loop
set /a c+=1
start /i /min ping -n 2 172.16.1.%c% && echo 172.16.1.%c% >>b:\ip.txt
if "%c%"=="20" exit
goto :loop
The above code fails to put the PING -successful IPs into ip.txt. Who can tell me why?
[ Last edited by 429499381 on 2007-8-14 at 03:22 PM ]
