C#打开文件夹的方法

来源:互联网 发布:淘宝上阿玛尼都是假的 编辑:程序博客网 时间:2024/05/12 19:55

其实很简单,就是用资源管理器程序打开制定的文件夹路径就可以了,用其他的应用程序打开某文件,也是这种方法

string path = @"D:\Program Files";//打开文件夹System.Diagnostics.Process.Start("explorer.exe", path);//使用notepad打开指定的xml文件System.Diagnostics.Process.Start("notepad++.exe", path + "\setReaderConfig.xml"); 
0 0
原创粉丝点击