How can i call a program
Pls how can i call a program from my own project. example i want to call windows media player when ever i press a button or when ever my program starts.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Oct 21, 2009, 11:26 AM EDT
using System.Diagnostics;
private void button1_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = "wmplayer.exe";
p.Start();
}
check "Do you like this answer" if helps you :)
Master BillaRank #2,229 · 630 reputationPosted Oct 21, 2009, 7:58 PM EDT
Just simple any program you can in .net usign process class.
for example, if you need call notepad,
using System.Diagnostics;
private void button1_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = "notepad.exe";
p.Start();
}
Same way you can call the windows media palyer
using System.Diagnostics;
private void button1_Click(object sender, EventArgs e)
{
Process p = new Process();
p.StartInfo.FileName = "wmplayer.exe";
p.Start();
}
Thank you