c#アウトソーシングプログラム呼び出し処理完了結果待ち

1428 ワード

string root = @"J:\yaoqianshu";

            string pythonPath = " ( ).py";

            string ccccPath = "";

            ProcessStartInfo myProcess = new ProcessStartInfo();

            myProcess.WorkingDirectory = root;

            myProcess.FileName = pythonPath;

            Process ones =  Process.Start(myProcess);

            Debug.WriteLine(" ");



            ones.WaitForExit();



            Debug.WriteLine(" ");