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, 2022, 6:58 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\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.