本文整理自网络,侵删。
uses WinTypes, ShellAPI;
procedure OpenObject(sObjectPath: string);begin ShellExecute(0, nil, PChar( sObjectPath ), nil, nil, SW_NORMAL);end;
//调用 OpenObject('c:\my_docs\report.txt');
相关阅读 >>
Delphi ini 文件操作记要: 使用 tmeminifile
Delphi 遍历所有目录和子目录下的文件名(可按后缀名遍历)
更多相关阅读请进入《Delphi》频道 >>