@echo off
netsh interface set interface name="以太网" admin=DISABLED
netsh interface set interface name="以太网" admin=ENABLED
netsh interface ip set address name="以太网" source=static address=192.168.168.168?mask=255.255.255.0
netsh interface ip add dnsserver name="以太网" address=114.114.114.114
pause
@echo off
netsh interface set interface name="以太网" admin=DISABLED
netsh interface set interface name="以太网" admin=ENABLED
netsh interface ip set address name="以太网" source=dhcp
pause
保存为.bat文件,以管理员权限运行;
注:保存文件使用ANSI格式;
?