Posts Tagged ‘Invoke exe’

Invoking .exe from an application

Here is how you invoke and .exe from your C#.net application

System.Diagnostics.Process P = new System.Diagnostics.Process();
P.StartInfo.FileName = “Path_To_The_EXE”;
System.Threading.Thread.Sleep(5000);
try
{

P.Start();

}
catch (Exception E)
{
//Handle The Exception
}