代码改变世界

open the folder

2013-04-21 10:36  hongjiumu  阅读(265)  评论(0编辑  收藏  举报
private void OpenFolder(string path)
{
    string windir = Environment.GetEnvironmentVariable("WINDIR");
    System.Diagnostics.Process process = new System.Diagnostics.Process();
    process.StartInfo.FileName = windir + @"\explorer.exe";
    process.StartInfo.Arguments = path;
    process.Start();
}