2010-09-06 125 views

回答

22

好的,我为你做了15分钟的研究,并得到了以下命令和链接。

打开Internet设置

inetcpl.cpl 

要使用连接选项卡

rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,4 

打开Internet设置更多信息 http://discussions.virtualdr.com/archive/index.php/t-41613.html

+2

稍微简洁一些... 'rundll32.exe inetcpl.cpl,LaunchConnectionDialog' – 2016-11-29 15:41:33

4

我能得到的最接近的是

control inetcpl.cpl,,4 

这将打开Internet属性对话框连接选项卡预选。不幸的是,它仍然需要您点击局域网设置才能进入代理设置。

+1

有没有办法打开局域网设置对话框? (please) – Wilf 2015-04-24 15:12:21

28

我找到了一个又一个,较短:

inetcpl.cpl ,4 

您可以在“运行”框或“命令提示符”中使用它。

+0

任何方式在启动窗口中打开LanSetting。 – 2016-07-22 03:15:39

+0

@ shiv.mymail - 不是没有使用某种形式的UI自动化来单击按钮(AutoHotKey或本机.NET类)。没有公开此功能的方法。 – 2016-11-29 15:46:29

+0

谢谢这是唯一为我工作的。通过运行命令运行它。 – Stryker 2017-04-20 14:10:17

2

或者,如果您只想选择“自动检测设置”,则可以直接使用Reg.exe修改注册表。

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "hhttp=proxy-url:port;https=proxy-url:port;ftp=proxy-url:port;socks=proxy-url:port;" /t REG_SZ /f 
+0

这个答案帮助我指出了正确的方向。我结束了使用AutoConfigURL参数。 – SebastianH 2016-08-12 12:13:37

0

不是什么新东西,但仍然有用。

inetcpl.cpl,4  

然后只需在键盘上按'L'进行代理设置即可。

+0

这与Vinicius Xavier有何不同[answer](https://stackoverflow.com/a/6629054/4685428)? – 2017-08-27 17:18:09

相关问题