摘要:透過 Bat 指令修改 Windows IP設定
DHCP
@ECHO OFF
netsh interface ip set address name="區域連線" dhcp
netsh interface ip set dns name="區域連線" dhcp
固定IP
@ECHO OFF
netsh interface ip set address name="區域連線" static [ip] [遮罩] [gw] 1
netsh interface ip set dns name="區域連線" static [dns]
"區域連線" 依環境需求改為網卡Name