How do I start another program from .NET?
-
Process.Start
-
Application.Start
-
Process.Run
-
Application.Run
To start another program from .NET, you use the Process.Start method from the System.Diagnostics namespace. Process.Start is the correct way to launch external applications. Application.Start and Application.Run are used for Windows Forms application startup, not for launching external programs. Process.Run does not exist.
Process.Start is the correct .NET API (System.Diagnostics.Process.Start) used to launch an external program or open a document/URL from managed code. Application.Start and Application.Run relate to starting a Windows Forms/ASP.NET application's own message loop or pipeline, not launching another separate program. Process.Run doesn't exist as a static method in the .NET Process class — Process objects are started via Start(), not Run().