例如:打开“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\js");
|
|