@echo off 

title 确认选择 

echo. 

set /p CONVERT= 1:开启无线网络,2:关闭无线网络,3:设置本地网络为固定IP,4:设置本地网络为自动获取,5:关闭本地网络?(1/2/3/4): 

if "%CONVERT%"=="1" goto C 

if "%CONVERT%"=="2" goto E 

if "%CONVERT%"=="3" goto F

if "%CONVERT%"=="4" goto G

if "%CONVERT%"=="4" goto H



:C 

netsh interface set interface "无线网络连接" enabled 

exit

:E 

netsh interface set interface "无线网络连接" disabled 

exit

:F

netsh interface ip set address "本地连接" static 10.0.3.199 255.255.255.0 10.0.3.1 

netsh interface ip set dnsservers "本地连接" static 114.114.114.114 primary

exit

:G

netsh interface ip set address "本地连接" DHCP

exit

:H

netsh interface set interface "本地连接" disabled 

exit