在C#中直接调用相关程序

来源:互联网 发布:淘宝原创设计男装店铺 编辑:程序博客网 时间:2024/05/16 16:19

语法:

System.Diagnostics.Process.Start("程序");


1. 调用记事本

System.Diagnostics.Process.Start("notepad.exe");

2.调用计算器

System.Diagnostics.Process.Start("calc.exe");


3.调用 word

System.Diagnostics.Process.Start("winword.exe");


4.调用excel

System.Diagnostics.Process.Start("excel.exe");

原创粉丝点击