Internet explorer 使用vbscript更新IE上的regedit autoconfigure变量

Internet explorer 使用vbscript更新IE上的regedit autoconfigure变量,internet-explorer,vbscript,proxy,refresh,regedit,Internet Explorer,Vbscript,Proxy,Refresh,Regedit,使用ms dos命令窗口中的visual basic脚本文件,我更改了REGEDIT varHKEY\U CURRENT\U USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigure,但我必须重新启动IE才能在IE Internet config->connections->LAN configuration中查看该值 C:>cscript proxypac.vbs: RegLocate = "H

使用ms dos命令窗口中的visual basic脚本文件,我更改了REGEDIT var
HKEY\U CURRENT\U USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigure
,但我必须重新启动IE才能在IE Internet config->connections->LAN configuration中查看该值

C:>cscript proxypac.vbs:

RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL"
CreateObject("WScript.Shell").RegWrite RegLocate, "http://10.11.12.13/proxy.pac", "REG_SZ"

如何在命令窗口中使用VBS刷新IE connection Regedit设置而不重新启动IE?

如果不重新启动IE应用程序,则无法通过VB脚本反映IE应用程序中对注册表项所做的任何更改

当IE已经运行时,IE不会立即应用这些更改。IE将在开始时间读取新值

没有任何命令可用于执行此操作

因此,没有任何其他选项,您需要重新启动IE应用程序以查看修改后的注册表值