Run external program and wait
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, How can i run an external program (some .EXE program) from my c# program, wait till this program ends, and then continue the c# program? ideas?
Use the
Process.WaitForExit
method:Process p = new Process();
p.StartInfo.FileName = "calc.exe";
p.Start();
p.WaitForExit();Microsoft MVP, Visual C# My Articles