本文整理自网络,侵删。
可以与 Explorer.exe 一起使用的命令行选项有:/n、/e、/root(加上一个对象)和 /select(加上一个对象)。
uses
ShellAPI;
ShellExecute(Handle,
nil,
'Explorer.exe',
PChar(Format('/e,/select,%s', [GLogger.CurrFileName])),
nil,
SW_NORMAL);
相关阅读 >>
dbgrid的cellclick事件,单击当前行记录的那一行时,不发生
Delphi idhttp.post超时导致整个线程停止问题解决
Delphi webbrowser 加载html 将html代码转换成网页
Delphi xe system.netencoding 字符串base64编码解码
更多相关阅读请进入《Delphi》频道 >>