简体   繁体   中英

Start IE with no Add-Ons

I'm looking for a possibility to start a IE with no Add-Ons with my code. The following code works fine, but starts a normal IE.

How can I start a IE with no Add-Ons with my code?

Thank you in advance!

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

You can start IE without any add-on by utilizing System.Diagnostics.Process. Sample below.

System.Diagnostics.Process ieProcess;
ieProcess = System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\iexplore.exe", "-extoff");
Process.Start("IExplore.exe", "http://stackoverflow.com" + " -extoff");

也可能有几种选择

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM