When using the Environment.SpecialFolder enumeration I often spend a few extra moments checking what path a particular SpecialFolder constant refers to on my computer. Since it can be different from machine to machine and user to user it can help to quickly identify where the special folders point to. I got tired of writing the same boilerplate code over and over again so I quickly wrote the Special Folders Browser.
Some useful features:
- Clearly displays the current path that each special folder represents.
- “Open in Explorer” button to jump to the specified path in Windows Explorer.
- “Copy C++/C# Code” buttons which copy the necessary code to the clipboard to save you some typing.
Here are some handy shortcuts:
- Double click to open folder in Windows Explorer
- Alt+E for “Open in Explorer”
- Alt+C for “Copy C++ Code”
- Alt+O for “Copy C# Code”
This tool was compiled for the .NET Framework 2.0 Beta 2. Oh, and it uses reflection so the enumeration constants are not hardcoded just in case the list changes between now and the RTM.
Download it here. In an upcoming post I'll be talking about language choice and why I wrote this tool in C#!
© 2005 Kenny Kerr