H halqj Unregistered / Unconfirmed GUEST, unregistred user! 2008-04-24 #1 我想得到文件的属性值是否为隐藏,查了很长一段时间,没有结果,请帮一下忙,最好给出中心代码
L liyinwei Unregistered / Unconfirmed GUEST, unregistred user! 2008-04-24 #2 function TForm1.FileIsHidden(const AFile: String): Boolean;<br>var<br> Attributes: Word;<br>begin<br> Attributes := FileGetAttr(AFile);<br> Result := (Attributes and faHidden) = faHidden;<br>end;
function TForm1.FileIsHidden(const AFile: String): Boolean;<br>var<br> Attributes: Word;<br>begin<br> Attributes := FileGetAttr(AFile);<br> Result := (Attributes and faHidden) = faHidden;<br>end;