您的位置:首页 > 其它

windows设置代理.bat 脚本

2018-02-27 17:04 363 查看

按照下列脚本复制到记事本中,保存,重命名后缀为.bat,使用时双击即可。

设置代理.bat,修改下列脚本中的代理地址和端口号

@echo off
echo 开始设置IE代理上网
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "代理地址:端口号" /f
echo 代理设置完成按任意键关闭
pause>nul

取消代理.bat

@echo off
echo 开始清除IE代理设置
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f
echo IE代理清楚完成按任意键关闭
pause>nul

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: