是否可以借助脚本在Internet Explorer 8的LAN设置中更改自动配置脚本地址? [英] Is it possible to change the automatic configuration script address in the LAN settings of Internet Explorer 8 with the help of a script?
问题描述
我在Internet Explorer 8的LAN设置中使用2个不同的自动配置脚本地址.在工作过程中,我需要经常在它们之间进行切换.每次我必须手动进行.
I use 2 different automatic configuration script addresses in the LAN settings of Internet Explorer 8. During the course of my work, I need to switch between them very often. Every time I have to do it manually.
有没有一种方法可以通过脚本等自动执行操作,以便可以随时在它们之间进行切换?
Is there a way I can automate it through a script or something, so that I can switch between them whenever I want?
推荐答案
您可以在批处理文件(.bat文件)中使用以下命令 批处理文件的使用使您无需单击太多UI即可执行简单的任务,即为Internet选项->高级设置中的使用自动配置脚本"文本框分配值.
You can use the following commands in a batch file (.bat file) Use of batch files relieves you from making so many UI clicks to perform a simple task of assigning a value to "Use automatic configuration script" text box in the internet options -> Advanced settings.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://www.xxxxx.com:1234/sampleScript" /f
结果如下:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f
这篇关于是否可以借助脚本在Internet Explorer 8的LAN设置中更改自动配置脚本地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!