当前位置:编程学习 > C#/ASP.NET >>

c#中路径问题

我用openfiledialog将文件的路径找到,系统进过一系列运算后,怎么样自动执行那个路径来打开文件呢?求教~ --------------------编程问答--------------------
 Process.Start(@"路径");
--------------------编程问答-------------------- 打开那个文件,用对应的程序,例如文本:


using System.Diagnostics;
Process txtEditor = new Process();
txtEditor.StartInfo=new ProcessStartInfo(@"c:\windows\NOTEPAD.EXE",openfiledialog.FileName);

txtEditor.Start();
--------------------编程问答--------------------

System.Diagnostics.Process.Start(“文件路径”);
--------------------编程问答-------------------- 使用相对路径
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,