proxy - 批处理/BAT - 使用批处理/BAT 文件更改代理设置

标签 proxy batch-file settings

有人可以教我如何使用 .bat 文件或建议更改代理设置吗?
老实说,我找不到有关的好信息。

我需要一个 .bat 文件,它将使用特定的代理 IP 和端口更改我的 Internet 设置(代理)。

谢谢

最佳答案

Internet Explorer 的代理服务器设置存储在注册表中 Software\Microsoft\Windows\CurrentVersion\Internet Settings 下.

Powershell (自 Windows 7 起包含在 Windows 中)您可以使用:
set-itemproperty -path "hkcu:Software\Microsoft\Windows\CurrentVersion\Internet Settings" -name ProxyServer -value "http=proxy-url:port;https=proxy-url:port;ftp=proxy-url:port;socks=proxy-url:port;" -type string
此设置只会影响 Internet Explorer,并且可能需要一个新选项卡,甚至可能需要重新启动 IE,尽管这不太可能。

关于proxy - 批处理/BAT - 使用批处理/BAT 文件更改代理设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4541507/

相关文章:

apache - 如何在 .htaccess 中设置代理

proxy - create-react-app:使用代理进行 Jest 测试

intellij-idea - IntelliJ - 首次运行后从旧版本导入配置

node.js - NPM 安装无法与代理周围的 Artifactory 一起使用

node.js - nodejs 表示 : hostname with port from the req object

windows-7 - 没有/d为什么不能在命令行中启动程序? (Windows 7x64)

batch-file - 如果用户在退出前按 Ctrl+C 执行命令,则批处理脚本

string - 用于读取文件并用新字符串替换字符串的批处理文件

postgresql - 查询一个参数(postgresql.conf 设置)比如 "max_connections"

c# - 在应用程序设置中保存字典并在启动时加载它