c# 调用外包程序 等待处理完成结果

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("结束进程");

 

posted on 2014-05-29 10:32  盖天00  阅读(343)  评论(0编辑  收藏  举报

导航