[Code] Show a file in Explorer
Posted by: JonGalloway.ToString(),
on 27 Jan 2007 |
View original | Bookmarked: 0 time(s)
I've noticed that some of my favorite programs have options to open the currently selected file in Explorer. Two that come to mind are Visual Studio 2005 and Firefox: Visual Studio added it to the File tabs: Firefox has it in the downloaded file dialog, and TimeSnapper shows it as an option in image browse mode. It's not hard to add to your programs, too: Here's the code: private static void ShowFileInExplorer(string filePath)
{
if (!File.Exists(filePath))
throw new FileNotFoundException("File...