资源管理器打开文件或文件夹
public static void BrowserFile(string filepath) { if (File.Exists(filepath) || Directory.Exists(filepath)) { Process.Start(@"explorer.exe", "/select,\"" + filepath + "\""); } }
public static void BrowserFile(string filepath) { if (File.Exists(filepath) || Directory.Exists(filepath)) { Process.Start(@"explorer.exe", "/select,\"" + filepath + "\""); } }