Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like to have the folder tree be updated to the current directory. As I jump around the computer to different drives and locations in Windows Explorer, the folder tree pane on the left becomes really long. This is because it has kept all the folder trees of all my previous locations open.

Is there a trick/keyboard shortcut/script to close all the expanded folder trees, except the tree of the currently open directory in Windows Explorer?

share|improve this question

The fastest way I've found is to right click an empty area in the folder pane. If you won't right click anything, you'll get two options: Show all folders and Expand to current.

If you click Show all and then toggle it back, that usually clears most of them. It won't collapse the my computer or network connections all the way however.

share|improve this answer
Thanks! Is it possible to hack this into an AHK script? – Ashwin Nanjappa Nov 2 '11 at 6:24
It'll take some detective work, but I'm sure it's possible. – surfasb Nov 2 '11 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .