:neusoft cls netsh interface ip reset"本地连接" echo 设置IP... netsh interface ip add address "本地连接" 192.168.10.160 255.255.255.0 echo 设置网关... netsh interface ip add address "本地连接" gateway=192.168.10.2 gwmetric=1 echo 设置DNS... netsh interface ip set dns "本地连接" static 202.103.24.68 primary del 本地连接 echo 设置IE代理... @echo Windows Registry Editor Version 5.00>>r.reg @echo[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings]>>r.reg @echo"ProxyEnable"=dword:00000001>>r.reg regedit /s r.reg del r.reg gotoexit
:auto cls echo 设置IP... netsh interface ip set address name="本地连接" source=dhcp echo 设置DNS... netsh interface ip set dns name="本地连接" source=dhcp @echo Windows Registry Editor Version 5.00>>r.reg @echo[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings]>>r.reg @echo"ProxyEnable"=dword:00000000>>r.reg regedit /s r.reg del r.reg gotoexit