Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Opening Windows Explorer to a Folder - C#

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: Wed, Sep 21, 2016, 7:03 AM


Overview

This article provides C# code to open a particular folder in Windows Explorer.

Code

private void OpenSubfolder(string folder)
{
    var psi = new ProcessStartInfo();
    psi.FileName = @"c:\windows\system32\explorer.exe";
    psi.Arguments = folder;
    Process.Start(psi);
}

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.