Forum posts for iexplore.exe

Process.Kill does not seem to work with iexplore.exe

I am using watin for browser automation, and many browser windows get left open, and at the end I am using this to attempt to close them all:

Process[] ieProcesses = Process.GetProcessesByName('iexplore');

foreach (Process ie in ieProcesses)
{
ie.CloseMainWindow();
ie.Close();
ie.Dispose();
}


For some reason close, closemainwindow, and dispose, all will not close my iexplore processes. If I step through this part with the debugger, ieProcesses will have all the processes in it, normally ~10, and it'll go through the foreach for each one but watching in the task manager, none of them close.

This may have to do with that they are started in hidden windows maybe? but I'm not sure the right way to close them then. Any idea?

View complete forum thread with replies

Other posts related to iexplore.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can I find programatically where iexplore.exe is?
Strange ProcessorAffinity issue with IEXPLORE.exe
iexplore.exe process opens but I can't see it
Batch file to terminate all instances of IExplore.exe
Debugging SHDocVw.InternetExplorer.Quit not closing iexplore.exe process
Process.Start(“IExplore.exe”); <— Is this reliable?
VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed
How to capture keystrokes of iexplore.exe only?
Process.Start(“IEXPLORE.EXE”) immediately fires the Exited event after launch.. why?
Unhandled exception at 0x75619617 (KernelBase.dll) in iexplore.exe
Process.Kill does not seem to work with iexplore.exe
invoke iexplore.exe in already launched instance using ShellExecuteEx
Run iexplore.exe invisibly
Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed
Can I pass the -f parameter to iexplore.exe when using Watir?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.