摘要: 在WinForm/C#中打开一个文件,主要是用到进程的知识。下面是一些实例,可以模仿着去实现。1.打开文件 1 private void btOpenFile_Click(object sender, EventArgs e) 2 3 { 4 5 //定义一个ProcessStartInfo实例 6 7 System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(); 8 9 //设置启动进程的初始目录10 11 info.WorkingDirectory = Applicatio... 阅读全文
posted @ 2013-02-20 14:03 酣睡的熊㊣ 阅读(435) 评论(0) 推荐(0)