Delphi 调用API打开文件 使用系统默认打开方式进行打开


本文整理自网络,侵删。

 
uses shellapi;
//调用API打开文件 使用系统默认打开方式进行打开.
procedure .OpenFileAPI(sfn:string);
begin
  ShellExecute(application.Handle, 'open', PChar(sfn), nil, nil, SW_SHOW);
end;

相关阅读 >>

delph记录输出日志

Delphi中判断tcp端口是否被占用

Delphi为你的窗体有效地提供剪贴板的相关操作

Delphi注入下载者源代码

Delphi 百度输入提示 Delphi 实现

Delphi 系统托盘 trayicon

Delphi 取得任意程序的命令行

Delphi winapi: findwindow、findwindowex - 查找窗口

Delphi 使用windows api(wincrypt)计算文件md5哈希,支持大文件

Delphi idhttp1 xmlpost

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



打赏

取消

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

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

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

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

评论

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