本文整理自网络,侵删。
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 10 seattle android应用程序使用toast
Delphi 用firedac获取 sql server错误文本信息
Delphi getmem(mystring,1024);//开辟1024个字节freemem(mystring,1024);//释放
Delphi tgifimage:timage显示gif动画
更多相关阅读请进入《Delphi》频道 >>