delphi GetTempDirectory 获取临时文件夹路径


本文整理自网络,侵删。

 
uses
  ShellApi, ShlObj,
  ComObj,
  ActiveX;

function GetTempDirectory: string;
var
  lpBuffer: array[0..MAX_PATH] of Char;
begin
  GetTempPath(MAX_PATH, @lpBuffer);
  Result := StrPas(lpBuffer);
end;



procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(GetTempDirectory);
end;

相关阅读 >>

Delphi 10.3 调试程序时出错:unable to create process:请求的操作需要提升

Delphi xe6开发的android应用实现在线升级完成后自动安装apk代码(加说明)

Delphi tchart使用经验小结

Delphi api实现抓屏

Delphi 限制文本框中只接受数字

Delphi formatdatetime 显示日期时间

Delphi编程时按回车键无效,无法换行解决办法

Delphi下ado的多线程编程

Delphi 正确得到本地ip

Delphi中messagebox的用法

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



打赏

取消

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

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

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

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

评论

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