delphi 打开文件夹并定位到一个文件(关键是/select参数)

 strFileName := FcxLV[nIndex].Items.Item[FcxLV[nIndex].ItemIndex].SubItems.Strings[0]; //路径
  ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + '/select,' + strFileName), nil, SW_NORMAL);

 

http://blog.csdn.net/yanjiaye520/article/details/6803795

posted @ 2015-10-20 17:50  findumars  Views(442)  Comments(0Edit  收藏  举报