:- @echo off
- for /f "tokens=1,2* delims= " %%i in ('ipconfig /all') do (
- if /i "%%i %%j %%k"=="ppp adapter 校园网:" set flag=a
- if defined flag (
- if "%%i %%j"=="IP Address." (
- for /f "tokens=2 delims=:" %%a in ("%%k") do set "ip=%%a"
- )))
- route add 59.71.0.0 mask 255.255.0.0 %ip%
- route change 0.0.0.0 mask 0.0.0.0 192.168.11.1
复制代码
|