//IP地址 子网掩码 网关
//第三行首选DNS地址,因为有个primary
//第四行备用DNS地址
@echo off
netsh interface ip set address "WLAN" static 192.168.43.135 255.255.255.0 192.168.10.1
netsh interface ip set dns "WLAN" static 114.114.114.114 primary
netsh interface ip add dns "WLAN" 8.8.8.8
pause
//命令行中输入ncpa.cpl即可打开适配器设置