if "%choice%"=="1" goto ip1
if "%choice%"=="2" goto ip2
if "%choice%"=="3" goto end
goto main
:ip1
echo.
echo 设置公司IP开始.......
echo.
cmd /c netsh interface ip set address name="无线网络连接" source=static addr=192.168.15.41 mask=255.255.255.0 gateway=192.168.15.254
cmd /c netsh interface ip set dns name="无线网络连接" source=static addr=218.85.152.99
echo 设置完成
goto end
:ip2
echo.
echo 设置宿舍IP开始.......
echo.
cmd /c netsh interface ip set address name="无线网络连接" source=dhcp
cmd /c netsh interface ip set dns name="无线网络连接" source=dhcp
echo 设置完成
goto end