本文整理自网络,侵删。
可以与 Explorer.exe 一起使用的命令行选项有:/n、/e、/root(加上一个对象)和 /select(加上一个对象)。
uses
ShellAPI;
ShellExecute(Handle,
nil,
'Explorer.exe',
PChar(Format('/e,/select,%s', [GLogger.CurrFileName])),
nil,
SW_NORMAL);
相关阅读 >>
Delphi fdconnection1.gettablenames 查看所有表包含用户表和系统表
Delphi 十六进制字符串转化成字符串输出hextostr strtohex(Delphi版、c#版)
更多相关阅读请进入《Delphi》频道 >>