首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#中怎么调用系统工具

2012-01-31 
C#中如何调用系统工具各位前辈好:在 C# 中我想在 点击 一个button 按钮时调用一下系统的工具(比如说 记事

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();
}

热点排行