SetIP.bat
runas /user:administrator "netsh int ip set address """本地连接""" static 10.10.20.44 255.255.255.0 10.10.20.1 1 "
runas /user:administrator "netsh int ip set dns """本地连接""" static 10.10.10.2 primary"
SetDHCP.bat
runas /user:administrator "netsh int ip set address """本地连接""" dhcp"
runas /user:administrator "netsh int ip set dns """本地连接""" dhcp"
注意 : 3个双引号