纯粹为了以后参考
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace StartMultiProcess
{
class Program
{
private static int m_finishTaskCount = 0;
static async void StartProcesses(string exePath, string args = "")
{
// object output;
Console.WriteLine("Begin Start Processes");
using (Process p = new Process())
{
p.StartInfo.FileName = exePath;
p.StartInfo.Arguments = args;
p.StartInfo.UseShellExecute = true;
p.StartInfo.CreateNoWindow = false;
p.StartInfo.RedirectStandardOutput = false;
p.StartInfo.RedirectStandardInput = false;
p.StartInfo.RedirectStandardError = false;
p.Start();
p.WaitForExit();
//if (p.Exi