例如:打開“E:\Training”文件夾並選中“20131250.html”文件
System.Diagnostics.Process.Start("Explorer.exe", @"/select,E:\Training\20131250.html");
一句代碼搞定!!!
擴展:
1)只打開文件夾:
System.Diagnostics.Process.Start("Explorer.exe", @"E:\Training");
2)打開文件夾並選中文件夾
System.Diagnostics.Process.Start("Explorer.exe", @"/select,E:\Training\test.txt");