@echo off
echo "please input location: 1.CDG 2.OTM"
set /p v1=
if "%v1%" == "1" (
goto one
)
if "%v1%" == "2" (
goto two
)
:one
netsh interface ip set address name="Local Area Connection" source=dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp
exit
:two
netsh interface ip set address name="Local Area Connection" source=static addr=172.27.39.105 mask=255.255.255.0 gateway=172.27.39.1 gwmetric=auto
netsh interface ip set dns name="Local Area Connection" source=static addr=61.28.10.68
exit