通过bat修改注册表
@echo off :: 设置代理服务器地址和端口号 set "proxyServer=proxy.example.com:8080" :: 启用或禁用代理(1表示启用,0表示禁用) set "enableProxy=1" :: 设置代理类型,1为HTTP代理,2为SOCKS代理 set "proxyType=1" :: 设置白名单,即允许代理的网站列表 set "whitelist=example.com;subdomain.example.com" :: 修改代理设置 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d %enableProxy% /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d "%proxyServer%" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "%whitelist%" /f :: 通知系统更新代理设置 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxySettingsPerUser /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d %enableProxy% /f :: 刷新系统设置 "%windir%\System32\cmd.exe" /c %windir%\System32\rundll32.exe "%windir%\System32\shell32.dll",Control_RunDLL "%windir%\System32\inetcpl.cpl",Connections,4关闭代理
@echo off :: 将代理服务器地址和端口号设置为空 set "proxyServer=" :: 设置启用代理为 0 (禁用代理) set "enableProxy=0" :: 修改代理设置 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d %enableProxy% /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d "%proxyServer%" /f :: 通知系统更新代理设置 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxySettingsPerUser /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d %enableProxy% /f :: 刷新系统设置 "%windir%\System32\cmd.exe" /c %windir%\System32\rundll32.exe "%windir%\System32\shell32.dll",Control_RunDLL "%windir%\System32\inetcpl.cpl",Connections,4
网友回复
python如何实现声纹识别用户进行验证?
在哪可找到各种影视经典角色的配音并克隆音色根据文本说话?
阿里通义大模型哪些是支持多模态的api的ai模型?
js如何实现浏览器中离线语音唤醒语音聊天小助手?
浏览器中如何将WebM视频转成mp4视频?
parlant如何改成qwen 的apikey与baseurl?
如何写一个chrome插件实现截屏自动生成步骤图文教程转成pdf或网页?
python如何通过阿里云的api对域名进行解析和ecs主机服务器进行启动停止等操作?
Tesla Robotaxi可以让特斯拉车自动无人驾驶跑滴滴为车主赚钱,国内以后也会这样吗?
有没有可以监控安卓手机上的app打开后偷偷摸摸做了啥的监控软件?