例子:
本地连接修改IP
netsh interface ip delete dns "本地连接" addr=all
netsh interface ip add dns "本地连接" addr=202.101.172.35
netsh interface ip add dns "本地连接" addr=202.101.172.36
netsh interface ip add address "本地连接" 192.168.0.133 255.255.255.0
netsh interface ip add address "本地连接" gateway=192.168.0.1 gwmetric=2
ipconfig /flushdns
netsh interface ip set address name="本地连接" source=dhcp
ipconfig /flushdns
用记事本保存为批处理文件就可以!