设置wlan 和以太网 ip 的bat 脚本
name 名字需要与网络连接名称对应
netsh interface ip set address name="WLAN" source=static addr=192.168.55.23 mask=255.255.255.0 gateway=192.168.55.254 1
netsh interface ip set dns name="WLAN" source=static addr=192.168.100.1
netsh interface ip add dns name="WLAN" addr=114.114.114.114
netsh interface ip set address name="以太网" source=static addr=192.168.55.23 mask=255.255.255.0 gateway=192.168.55.254 1
netsh interface ip set dns name="以太网" source=static addr=192.168.100.1
netsh interface ip add dns name="以太网" addr=114.114.114.114