本文整理自网络,侵删。
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 中的哈希表: thashedstringlist
Delphi 一组数据,按由大到小进行排序,并输出最大值与最小值
Delphi 将 html 代码直接加入到 twebbrowser 组件中去
Delphi 10 下提示sharedactivitycontext错误的解决方法
更多相关阅读请进入《Delphi》频道 >>