using system; using system.Collections.Generic; using system.ComponentModel; using system.Data; using system.Drawing; using system.Text; using system.Windows .Forms; using system.IO; using system.Runtime.InteropServices; using system.Security; using system.Diagnostics; //命名空間提供特定的類,使您能夠與系統進程、事件日志和性能計數器進行交互。 namespace Windows Application1 { /// <summary> /// 啟動本機系統程序 /// 只需要把程序的exe文件寫入Process.Start("")中就行 /// </summary> public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Process.Start("calc.exe");//計算器 } private void button2_Click(object sender, EventArgs e) { Process.Start("TTPlayer.exe"); } private void button3_Click(object sender, EventArgs e) { Process.Start("IEXPLORE.EXE"); } } }