Hi,
You can look at this example ,
private void button1_Click(object sender, EventArgs e)
{
//code here please
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="iexplore";
proc.StartInfo.Arguments=http://www.microsoft.com;
proc.Start();
proc.WaitForExit();
MessageBox.Show("You have just visited www.microsoft.com");
}
How to execute a dos commend in C#?
Many thanks for your replying.
- private void button1_Click(object sender, EventArgs e)
-
{
-
//code here please
-
}