Running or Executing an EXE file from within application.

Posted by vishalneeraj-24503 under .NET Framework category on | Points: 40 | Views : 616
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 = "";

After executing above code,Notepad will be opened.

Comments or Responses

Login to post response