Advertisement
johnmahugu

python - Show the path of all Explorer Windows

Jul 8th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. '''
  2. python - Show the path of all Explorer Windows
  3. This piece of Python code shows the current path of all opened Explorer Windows
  4. '''
  5.  
  6. from win32com.client.gencache import EnsureDispatch
  7.  
  8. for w in EnsureDispatch("Shell.Application").Windows():
  9.     print w.LocationName + "=" + w.LocationURL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement