delphi 打开文件夹并定位到一个文件

Posted on 2011-09-23 14:19  严武  阅读(2016)  评论(0)    收藏  举报
  strFileName := FcxLV[nIndex].Items.Item[FcxLV[nIndex].ItemIndex].SubItems.Strings[0]; //路径
  ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + '/select,' + strFileName), nil, SW_NORMAL);

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3