调用记事本的问题 using System.Diagnostics;System.Diagnostics.Process.Start("notepad.exe"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Diagnostics.Process.Start("notepad.exe","你的文件名"); System.Diagnostics.Process.Start("notepad.exe","c:\\ky.txt");如果想加参数,如下Process proc = new Process(); proc.StartInfo.FileName = yourfilename;proc.StartInfo.Arguments = yourparameters; proc.Start(); 或者最简单://导出完毕,显示出来记事本if(File.Exists(this.textBox1.Text)){System.Diagnostics.Process.Start(this.textBox1.Text);} using System.Diagnostics;//打开记事本System.Diagnostics.Process.Start("notepad.exe");//打开文本文件System.Diagnostics.Process.Start("文本文件"); Process p = new Process()p.StartInfo.FileName = "..."p.StartInfo.CreatNoWindow = true;p.Start(); System.Diagnostics.Process.Start("notepad.exe"); C#调用java工程,或c/C++调用java工程 一个问题一直困惑着我!!!马上结贴 [winform]关于datagridview绑定list<T>数据后不能刷新显示的问题 C# 动态textbox 数据库 c#如何接受数据 【listview问题】想在listview里添加两列,然后在每列中添加一些数据,该怎么做。。 关于短信平台的 用C#对数据进行条件查询的问题…… 如何输出ANSI格式的繁体中文?在线等…… httpwebrequest 提交表单数据 为什么显示不出来? [请教]如何在web application 中使用C#完成SharePoint任务?
Process proc = new Process();
proc.StartInfo.FileName = yourfilename;
proc.StartInfo.Arguments = yourparameters;
proc.Start();
//导出完毕,显示出来记事本
if(File.Exists(this.textBox1.Text))
{
System.Diagnostics.Process.Start(this.textBox1.Text);
}
//打开记事本
System.Diagnostics.Process.Start("notepad.exe");
//打开文本文件
System.Diagnostics.Process.Start("文本文件");
p.StartInfo.FileName = "..."
p.StartInfo.CreatNoWindow = true;
p.Start();