首页 > Windows开发 > 详细

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

时间:2019-04-01 12:43:23      阅读:95      评论:0      收藏:0      [点我收藏+]

//打开电脑自带计算器软件
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);
}

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

原文:https://www.cnblogs.com/z55w/p/10635638.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!