how to call outside application in C#

  • Thread starter Thread starter cecille
  • Start date Start date
C

cecille

Hi don't know where to post this, please help me.

I have a third party application that I need to launch inside my C#
application. how can I do this?

thanks.
 
C# application is a web based or Desktop windows form??? same question
for Third party application. What is exact scenario
 
public void WindowsLaunchApplication(string app)
{

Process p=null;
try
{
p= new Process();
p.StartInfo.FileName = app;
p.Start();

p.WaitForExit();
}
catch (Exception ex)
{
Console.WriteLine("Exception Occurred :{0},{1}",
ex.Message,ex.StackTrace.ToString());
}


}
 
Hi.

My application is a desktop based application.. the third party apps that I
will be launching from my apps is also desktop based except that I can
launch the application hidden in the background..

Is using the process class the only way that I can launch the 3rd party
apps?? and how do I exit the rd party apps since it is running in the
background?

thanks
 
Back
Top