C#应用程序中调用打开某文档(如: IE)

来源:互联网 发布:函数式编程书籍 编辑:程序博客网 时间:2024/06/06 18:56

C#应用程序中调用打开某文档(如: IE)

//调用系统默认打开方式
string htmInfo = "readme.htm";        
 System.Diagnostics.Process.Start( Application.StartupPath +htmInfo); 
  OR
 System.Diagnostics.Process.Start(@"http:\\www.hotmail.com"); 
 
// 打开IE窗口打开
System.Diagnostics.Process.Start("iexplore.exe", @"http:\\www.hotmail.com");
//调用系统默认打开方式 某文件
string path = @"F:\mp3\007.rm";
 System.Diagnostics.Process.Start( path ); 
 

//或者

Help.ShowHelp(this, "e:\\Play.txt"); 

来源:http://liyuehui5205.blog.163.com/blog/static/66031151200693083911908/

原创粉丝点击