本地bat文件为:copy_all_to_zip_cache.bat
static void CallBatFile()
{
var dirInfo = new DirectoryInfo(FIOUtility.CurrentWorkDirectory);
var batFilePath = Path.Combine(dirInfo.Parent.Parent.FullName, "xxx/copy_all_to_zip_cache.bat");
if (!File.Exists(batFilePath))
{
Debug.LogError($"[CopyToZipCacheDirectory] not find path:{batFilePath}");
return;
}
ProcessStartInfo start = new ProcessStartInfo();
start.FileName = batFilePath;
start.UseShellExecute = true;
var process = Process.Start(start);
process.WaitForExit();
//process.Kill();
//process.Dispose();
//process.Close();
//process = null;
//弹出指定目录
EditorUtility.RevealInFinder(Path.Combine(FIOUtility.CurrentWorkDirectory, "Tools/dependents/"));
}

1254

被折叠的 条评论
为什么被折叠?



