C#中如何调用记事本

来源:互联网 发布:招聘网络推广主管 编辑:程序博客网 时间:2024/05/16 07:15
直接调用外部命令就可以了,
System.Diagnostics.Process.Start("notepad.exe");//记事本
System.Diagnostics.Process.Start("winword.exe");//Word
System.Diagnostics.Process.Start("excel.exe");//Excel
System.Diagnostics.Process.Start("calc.exe");//计算器
在单击事件里直接加入就可以了!
原创粉丝点击