日期:2014-05-18  浏览次数:20715 次

C#中如何调用系统工具
各位前辈好:
  在 C# 中 我想在 点击 一个button 按钮时调用一下系统的工具(比如说 记事本 计算器 等) 可怎么也想不起来 请各位前辈指点一下 在此 谢过了!

------解决方案--------------------
private void button1_Click_1(object sender, EventArgs e)
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "notepad.exe";//记事本
p.Start();
p.StartInfo.FileName = "calc.exe";//计算器
p.Start();
p.StartInfo.FileName = "mspaint.exe";//画图
p.Start();
}