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

Opening Windows Explorer to a Folder - C#

RSS
Modified on Wed, Sep 21, 2016, 7:03 AM by Administrator Categorized as ┬ĚNet Framework

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-2018, Patrick Jasinski.