在没有附加组件的情况下启动 IE



我正在寻找一种用我的代码启动没有附加组件的IE的可能性。以下代码工作正常,但启动正常的 IE。

如何使用我的代码启动没有附加组件的 IE?

提前谢谢你!

SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorerClass();
object missing = new object();
ie.Navigate(url, ref missing, ref missing, ref missing, ref missing);

您可以使用System.Diagnostics.Process在没有任何附加组件的情况下启动IE。 示例如下。

System.Diagnostics.Process ieProcess;
ieProcess = System.Diagnostics.Process.Start(@"C:Program FilesInternet Exploreriexplore.exe", "-extoff");
Process.Start("IExplore.exe", "http://stackoverflow.com" + " -extoff");

也可以有几个选项

Process.Start("IExplore.exe", "http://bullion.ru" + " -extoff -private");

相关内容

最新更新