Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
IE actually creates multiple processes when it runs. Depending upon which of the processes you shut down as to whether or not it will shut down all processes.
What you're going to need to do is detect how many browser processes for IE are actually running and then loop through and close them all, checking after each close call to see if you managed to close them all.
My preferred method, though, is to fiddle with the windows registry to tell IE to not spawn multiple processes. I don't have the link readily at my fingertips but it was shared on this forum somewhere how to do so.
What you're going to need to do is detect how many browser processes for IE are actually running and then loop through and close them all, checking after each close call to see if you managed to close them all.
My preferred method, though, is to fiddle with the windows registry to tell IE to not spawn multiple processes. I don't have the link readily at my fingertips but it was shared on this forum somewhere how to do so.