您的位置:首页 > 编程语言 > C#

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

2011-12-06 23:47 218 查看
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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: