System.Diagnostics.ProcessStartInfo ps=new System.Diagnostics.ProcessStartInfo("my.exe");
System.Diagnostics.Process p=new System.Diagnostics.Process();
p.StartInfo=ps;
p.Start();
//my.exe是你要调用的程序,放在同一目录下
System.Diagnostics.Process p=new System.Diagnostics.Process();
p.StartInfo=ps;
p.Start();
//my.exe是你要调用的程序,放在同一目录下
you also can write path .
such as. "c:\\winnt\\system32\\my.exe"hehe..
建议在程序中加句等待外部程序结束的命令。
好像是wait()什么的,忘了!
haha..