krunalj
asked on
how to call another exe in c#
Hi,
I am using C# of VS .Net 2005.
I want to call another executable file (.exe)in my program. I need to wait till executable is terminated
How can I do it?
Thanks.
I am using C# of VS .Net 2005.
I want to call another executable file (.exe)in my program. I need to wait till executable is terminated
How can I do it?
Thanks.
There is no Shell command in C#.use the process instead
System.Diagnostics.Process proc = new System.Diagnostics.Process ();
proc.StartInfo.FileName="y our.exe";
proc.Start();
proc.WaitForExit();
System.Diagnostics.Process
proc.StartInfo.FileName="y
proc.Start();
proc.WaitForExit();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try something like this:
Open in new window