hide the files

procedure TForm3.Button3Click(Sender: TObject);
var
   attr:integer;
begin
   attr := fileGetAttr(ExtractFilePath(Application.ExeName)+'sb.tbr');
   if not ((attr and faHidden) = faHidden )then
   begin
   fileSetAttr(ExtractFilePath(Application.ExeName)+'sb.tbr',attr or faHidden);
   MessageBox(0,'  完成','提示',MB_OK);
   end;
end;

猜你喜欢

转载自blog.csdn.net/whbtomt/article/details/53454404
今日推荐