delphi 如何设置文件属性


本文整理自网络,侵删。

 delphi 如何设置文件属性

procedure TForm1.Button1Click(Sender: TObject);
begin
with OpenDialog1 do
if Execute then
if SetFileAttributes(PChar(Filename), FILE_ATTRIBUTE_HIDDEN) then
Caption:='attribute was changed'
else
Caption:='attribute was not changed';
end;

相关阅读 >>

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

Delphi idftp 详解

Delphi 模似键盘输入又一方法

Delphi android windows ios通用获取程序版本

Delphi 网址链接结尾自动补/

Delphi 10 seattle android应用程序使用toast

Delphi 读取文本文件的最后一行

Delphi asc转换成unicode

Delphi 创建自己的定时器 定时清理内存

最简单的Delphi程序(控制台)

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



打赏

取消

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

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

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

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

评论

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