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 xe10 针对全面屏手机端无法全面显示,下方显示黑条的处理

Delphi 字符串分割

Delphi中使用自定义字体

Delphixe win7、mssql2000、udl

Delphi 利用hook技术实现键盘监控

Delphi [函数] unicode 检查字符串是否含中文字

Delphi 10.3新特性 内联变量

Delphi用多媒体库 bass.dll 播放 mp3 - 打开、播放、暂停、停止

Delphi idhttp控件学习(图片下载)

Delphi 读取dll所有输出函数名

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



打赏

取消

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

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

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

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

评论

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