Loading

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 

 

--------------------- 

作者:ChineseMoonGod

来源:博客园

原文:https://www.cnblogs.com/ChineseMoonGod/p/6023767.html

posted @ 2018-11-29 17:08  WeiYongZhi  阅读(250)  评论(0编辑  收藏  举报