[python-win32] Re: Query and remove all IEBrowsers

Roger Upole rwupole at msn.com
Fri Jan 6 04:45:19 CET 2006


You can loop thru the ShellWindows collection and kill them all:

import win32com.client
shellwindows_guid='{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'
for sw in win32com.client.Dispatch(shellwindows_guid):
    sw.Quit()

      Roger



More information about the Python-win32 mailing list