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