Windows Bat脚本设置代理连接到172.20.58.112:7890
@echo off setlocal
set PROXY_ADDR=172.20.58.112 set PROXY_PORT=7890
echo Setting proxy to %PROXY_ADDR%:%PROXY_PORT% reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings' /v ProxyEnable /t REG_DWORD /d 1 /f >nul reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings' /v ProxyServer /t REG_SZ /d '%PROXY_ADDR%:%PROXY_PORT%' /f >nul
echo Proxy settings updated.
pause exit /b
原文地址: https://www.cveoy.top/t/topic/mQbk 著作权归作者所有。请勿转载和采集!