标签:
private void RunBat(string batPath) { Process pro = new Process(); FileInfo file = new FileInfo(batPath); pro.StartInfo.WorkingDirectory = file.Directory.FullName; pro.StartInfo.FileName = batPath; pro.StartInfo.CreateNoWindow = false; pro.Start(); pro.WaitForExit(); }
标签:
原文地址:http://www.cnblogs.com/pingming/p/4206704.html