new ProcessStartInfo() : ProcessStartInfo « System.Diagnostics « C# / C Sharp by API






new ProcessStartInfo()

  

using System.Diagnostics;

class MainClass
{
    public static void Main()
    {
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.FileName = "notepad.exe";
        startInfo.Arguments = "yourFile.cs";
        
        Process.Start(startInfo);
    }
}

   
    
  








Related examples in the same category

1.ProcessStartInfo.Arguments
2.ProcessStartInfo.ErrorDialog
3.ProcessStartInfo.FileName
4.ProcessStartInfo.RedirectStandardOutput
5.ProcessStartInfo.UseShellExecute
6.ProcessStartInfo.WindowStyle
7.ProcessStartInfo.WorkingDirectory