0
点赞
收藏
分享

微信扫一扫

bat 启用禁用浏览器代理-通过修改注册表数值


对应注册表项
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
0 禁用代理 1启用代理

浏览器启用代理的bat如下:
@echo off

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

ipconfig /flushdns

浏览器禁用代理的bat如下:
@echo off

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

ipconfig /flushdns

举报

相关推荐

0 条评论