Custom Search

Thursday, January 31, 2008

Start a process in c#

With this code you can start the process mshearts.exe when a user uses the click event.

All you have to do is create a new process and specify the location of it. Then the start event is called and the process will pop up.

private void button2_Click(object sender, EventArgs e)


Process proc = new Process();

proc.StartInfo = new ProcessStartInfo(@"C:\Windows\system32\mshearts.exe");



No comments: