Forum Discussion

twhitehouse's avatar
twhitehouse
Contributor
10 years ago

'Process "ieexplore" stayed in the system after the close command was used."

At seemingly random times in my script, Internet Explorer will remain opened.   I also have a loop to loop through all browsers on the system.  In this loop, 2 internet explorer processes are actuall...
  • k_de_boer03's avatar
    k_de_boer03
    10 years ago

    I use this code to close internet explorer (Jscript):

     

    while(Sys.WaitProcess("iexplore").Exists){
            Sys.Process("iexplore").Close();
    }

    It may take a few loops before it actually closes, but I consider it a cleaner more stable way than to abruptly kill the process with Terminate().