This post originated from an RSS feed registered with Python Buzz
by Simon Brunning.
Original Post: Listing shell windows
Feed Title: Small Values of Cool
Feed URL: http://www.brunningonline.net/simon/blog/index-PnJ.xml
Feed Description: Simon Brunning - stuff that I find interesting
Having read Raymond Chen's Using script to query information from Internet Explorer windows, well, how could I resist? import win32com.client shell = win32com.client.gencache.EnsureDispatch("Shell.Application") windows = shell.Windows() for window in (windows.Item(index) for index in range(1, windows.Count+1)): if window: print window.LocationName, '=', window.LocationURL Quite pointless, but there you...