找到了,delphi5 help:<br>function FileSetAttr(const FileName: string; Attr: Integer): Integer;<br>这个函数改变文件属性。<br><br>Description<br><br>FileSetAttr sets the file attributes of the file given by FileName to <br>the value given by Attr. The value of Attr is formed by combining <br>the appropriate file attribute constants, as in the following: <br><br>FileSetAttr('MyFile.sys', faReadOnly or faSysFile);<br><br>FileSetAttr returns zero if the function was successful. Otherwise the return value is a Windows error code.