[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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 794 | Hits: 94

Similar Posts

  • SQL SERVER Working with FileTables in SQL Server 2012 Part 3 Retrieving Various FileTable Properties more
  • SQL Server - ALTER DATABASE to set a smaller FILEGROWTH for this file. more
  • SQL SERVER FIX: ERROR Msg 5169, Level 16: FILEGROWTH cannot be greater than MAXSIZE for file more
  • Display the last modified date of the file on the client with HTML5 File API and ASP .NET FileUpload more
  • DesktopBrowser - A Web Based File Explorer for Media Desktops more
  • Write data to Excel file in C# VB.NET - Excel Files XLSX XSL CSV more
  • ASP.NET File Manager - Download Files (coming soon in v2011 vol 1) more
  • Combine Multiple css Files into One File and Minify css and javascipt using Nant more
  • SQL SERVER Reduce the Virtual Log Files (VLFs) from LDF file more
  • Get the Batch Files Path in a Batch File more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD