- @echo off
- :_loop
- for /f tokens^=1^,2^ delims^=^"^" %%a in ('wmic nicconfig get IPAddress /value ^| findstr /i "IPAddress=[^]"') do (set "ip=%%b")
- echo, ^^_^^ IPAddress^: %ip%
- (echo,%ip%|findstr "^[^9]" >nul 2>nul) && (
- ipconfig /release
- ipconfig /renew
- ping -n 10 127.1>nul
- goto :_loop
- )
复制代码
|