1 手动输入 (地址和端口)

 

 

方法二:使用bat脚本,双击即可

设置脚本 SetIEProxy.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

 

取消脚本 ClearIEProxy.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

 

脚本来源:

https://blog.csdn.net/u012586326/article/details/112343755

 

 

  1. @echo off
  2.  
    echo 开始设置IE代理上网
  3.  
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
  4.  
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "代理地址:端口号" /f
  5.  
    echo 代理设置完成按任意键关闭
  6.  
    pause>nul
posted on 2021-02-24 15:36  雨点点  阅读(2380)  评论(0编辑  收藏  举报