直接打开指定的目录

    string dir = path;
    dir = dir.Replace(@"/", @"\");
    System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("Explorer.exe");
    psi.Arguments = "/e,/select," + dir;
    System.Diagnostics.Process.Start(psi);

 

posted @ 2019-10-15 21:03  斯芬克斯  阅读(231)  评论(0编辑  收藏  举报