public static void OpenDirectory(string path){
if (string.IsNullOrEmpty(path)) return;
path=path.Replace("/", "\");
if (!Directory.Exists(path)){
Debug.LogError("No Directory: " + path);
return;
}
//可能360不信任
System.Diagnostics.Process.Start("explorer.exe", path);
}
public static void OpenDirectory(string path){
// 新开线程防止锁死
Thread newThread=new Thread(new ParameterizedThreadStart(CmdOpenDirectory));
newThread.Start(path);
}
private static void CmdOpenDirectory(object obj){
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c start " + obj.ToString();
UnityEngine.Debug.Log(p.StartInfo.Arguments);
p.StartInfo.UseShellExecute = false