C#定位一个文件并选中

String path = @"C:\Program Files (x86)\Tencent\QQ\Bin\QQ.exe";
//定位打开C:\Program Files (x86)\Tencent\QQ\Bin文件目录并选中了QQ.exe   注意:/select后还有个逗号(,)。
System.Diagnostics.Process.Start("explorer.exe", "/select," + path);

 

猜你喜欢

转载自www.cnblogs.com/ywj1874/p/9083171.html