How to run an application from your program in C#?

Question:

How to run an application from your program in C#?

Answer:

You need to use the Process class.

using System;
using System.Diagnostics;

namespace Example
{
    class Program
    {
        static void Main(string[] args)
        {
            Process.Start("Notepad.exe");
        }
    }
}
Scroll to Top