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();
}
复制代码

bat里写的

Resgen.exe  StringResources.zh-cn.txt StringResources.zh-cn.resources 

 

posted @   ChineseMoonGod  阅读(3378)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示