C#筆記

呼叫外部程序:
System.Diagnostics.Process.Start ("%DIR%:/filename");

若使用 Button物件來呼叫,則:
Private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start ("%DIR%:/filename");
}

0 Comments:

Post a Comment