Delphi 调用ShellExecute打开txt文本


本文整理自网络,侵删。

 
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 转数字为大写金额源代码

Delphi fmx关闭安卓程序

Delphi 一行一行读取txt文件

tmsweb core 组件居中显示

Delphi idftp 错误:socket error 10054 �c connection reset by peer -连接被重置

Delphi 比较两个日期相差天数

Delphi 从dbgird中导出到excel

Delphi下cpu getcpuid实现(x86和x64)

Delphi 是否是闰年- isleapyear、isinleapyear

Delphi循环移位操作

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...