z55w

winform如何打开电脑自带小软件

//打开电脑自带计算器软件
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
Info.FileName = "calc.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
}

//打开电脑自带记事本软件
private void button2_Click(object sender, EventArgs e)
{
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
Info.FileName = "notepad.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
}

//打开电脑自带画图软件
private void button4_Click(object sender, EventArgs e)
{
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
Info.FileName = "mspaint.exe ";//"calc.exe"为计算器,"notepad.exe"为记事本,"mspaint.exe "为画图
System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
}

发表于 2019-04-01 12:20  南城逆流  阅读(238)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-04-23
  • 2021-10-09
  • 2021-11-03
  • 2021-04-09
  • 2021-06-01
  • 2021-07-06
  • 2021-07-30
  • 2021-10-26
猜你喜欢
  • 2022-02-03
  • 2021-12-14
  • 2021-07-31
  • 2021-11-24
  • 2021-07-13
  • 2022-12-23
  • 2021-05-05
相关资源
相似解决方案