
CODE: [Copy to clipboard][ Last edited by Climbing on 2007-3-9 at 07:45 AM ]@echo off
for /f "usebackq tokens=3,4,5 delims=.: " %%i in (`ipconfig /all ^| find /i "IP Address"`) do call :_check %%i.%%j.%%k
goto :eof
:_check
type ip.txt | find "%1"
if %errorlevel%==1 echo %1>> ip.txt
goto :eof
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |