Software & Finance





C# - How to start notepad file in asp.net with code?






C# - How to start notepad file in asp.net with code?

 

Here is the code for starting notepad.exe or any other application using c#.

System.Diagnostics.Process p1 = new System.Diagnostics.Process();
p1.StartInfo.WorkingDirectory = Request.MapPath("c:\\systems32");
p1.StartInfo.FileName = Request.MapPath("notepad.exe"); 
p1.Start();