How do I launch application one from another in C#?

Suriyan Suresh picture Suriyan Suresh · Jul 11, 2009 · Viewed 77.2k times · Source

I have two desktop applications. After closing the first application, the first application will start the second application.

How do I start the second application after finishing first application?

My first application creates a separate desktop.

Answer

JP Alioto picture JP Alioto · Jul 11, 2009

Use the Process class when you are exiting your first application.

var p = new Process();
p.StartInfo.FileName   = "notepad.exe";  // just for example, you can use yours.
p.Start();