摘要:
C# 执行bat批处理文件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();} 阅读全文
posted @ 2012-07-10 20:48 PHP-张工 阅读(14131) 评论(0) 推荐(1) 编辑