Category: Files
Title: Set or change file attributes
Date added: 15.03.2006
Hits: 3038
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;