首页 新闻 会员 周边

2012 r2 系统 程序 执行bat 命令 报这个 手动执行没问题

-1
[待解决问题]

 2012 r2 系统 程序 执行bat  命令  报这个   手动执行没问题

问题补充:

Process pro = new Process();
FileInfo file = new FileInfo(receivePath);
pro.StartInfo.WorkingDirectory = file.Directory.FullName;
pro.StartInfo.FileName = receivePath;
pro.StartInfo.CreateNoWindow = true;
pro.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
pro.StartInfo.RedirectStandardInput = true;//接受来自调用程序的输入信息
pro.StartInfo.RedirectStandardOutput = true;//由调用程序获取输出信息
pro.StartInfo.RedirectStandardError = true;//重定向标准错误输出
pro.StartInfo.UseShellExecute = false;
pro.Start();

程序员编程日记的主页 程序员编程日记 | 初学一级 | 园豆:6
提问于:2018-02-01 15:37

程序是怎么执行bat的?

dudu 6年前
< >
分享
所有回答(1)
0

  选择 x64 发布就可以了 

程序员编程日记 | 园豆:6 (初学一级) | 2018-02-01 22:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册