打开所有的文件的 代码,包括word/ppt/txt/xls/mp3/视频文件

添加using

using System.Diagnostics;

string fileName = @"D:/新建 文本文档.txt";//路径自己可以换成ppt、mp3、wmv、jpg、rmvb等等格式的文件,都可以
  Process.Start(fileName);

 

posted on 2013-10-26 16:32  一笑而过88  阅读(181)  评论(0编辑  收藏  举报