首页  编辑  

判断是否有某个属性

Tags: /超级猛料/Stream.File.流、文件和目录/文件操作/   Date Created:

function HasAttr(const FileName: string; Attr: Word): Boolean;

begin

 Result := (FileGetAttr(FileName) and Attr) = Attr;

end;