监视程序是否执行完毕
请教各位高手怎么编写一个类,用来监视程序是否执行完毕,如果完毕就开始下一次执行。谢谢
------解决方案--------------------程序是你启动的还不已经存在的?是你开的就这样   
     		System.Diagnostics.Process p = new System.Diagnostics.Process(); 
 			p.StartInfo.FileName = 你的文件名; 
 			p.StartInfo.WorkingDirectory = 工作路径; 
 			//p.StartInfo.CreateNoWindow = true; 
 			//p.StartInfo.UseShellExecute = false; 
 			p.Start();  			   
 			while(p.HasExited == false) 
 			{ 
                                   //Do something 
 			}