日期:2014-05-16 浏览次数:21362 次
private void button4_Click(object sender, EventArgs e)
{
#region 打开外部exe程序
Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.FileName = textBox3.Text;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.EnableRaisingEvents = true;
myProcess.Start();
#endregion
//myProcess.StandardOutput.ReadToEnd();
//myProcess.BeginOutputReadLine();
myProcess.WaitForExit();
}