直接打开指定的目录

    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);

猜你喜欢

转载自www.cnblogs.com/sifenkesi/p/11680797.html