Running or Executing an EXE file from within application.

vishalneeraj-24503
Posted by vishalneeraj-24503 under .NET Framework category on | Points: 40 | Views : 1874
We have to first import System.Diagnostics Namespace then use the Process class.
Suppose,we have to launch Notepad,

Using System.Diagnostics;
Process proc = new Process();
proc.StartInfo.FileName = @"Notepad.exe";
proc.StartInfo.Arguments = "";
proc.Start();

After executing above code,Notepad will be opened.

Comments or Responses

Login to post response