title: Closing an IE instance created by WScript.CreateObject
body: <p>I'm looking for a way to retrieve the process ID from an object that was created by running:</p>
  
  <pre><code>Set ie = WScript.CreateObject("InternetExplorer.Application", "ie_")
  </code></pre>
  
  <p>My problem is that sometimes I see that the <code>iexplorer</code> process remains open and isn't closed after running:</p>
  
  <pre><code>ie.stop
  ie.Quit
  </code></pre>
  
  <p>I found some workarounds, like looking for the newest <code>iexplorer</code> process or looking at the process name, but this isn't good for me since I have several Internet Explorer instances opened in parallel by different processes and it might be on the same time.</p>
  
  <p>This is not good:</p>
  
  <pre><code>Set colProcessList = objWMIService.ExecQuery _ 
  ("Select * from Win32_Process Where " _ 
  &amp; "Name = '"&amp; sProcessName &amp; "'") 
  </code></pre>
  
  <p>I saw <a href="http://www.vbforums.com/showthread.php?t=379959" rel="nofollow">this solution</a> that might work, but I don't know how to implement it for Internet Explorer.</p>