- @echo off
- if exist "%~dp0"1.txt (
- echo;正在切换为外网...
- del "%~dp0"1.txt
- netsh interface ip set address "本地连接" dhcp
- netsh interface ip set dns "本地连接" dhcp
-
-
- ) else (
- echo;正在切换为内网...
- echo a > "%~dp0"1.txt
-
- netsh interface ip set address "本地连接" static 132.228.290.444 288.288.288.0 132.228.290.410
- netsh interface ip set dns "本地连接" static 132.228.290.411
- netsh interface ip add dns "本地连接" 132.228.44.99
- )
-
- pause
复制代码
|