Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


Sets the file attributes of a specified file within a single file system.

function FileSetAttr(const FileName: string; Attr: Integer): Integer;

FileSetAttr sets the file attributes of the file given by FileName to the value given by Attr. The value of Attr is formed by combining the appropriate file attribute constants, as in the following:

SinlgeFileSytem.FileSetAttr('MyFile.sys', faReadOnly or faSysFile);

FileSetAttr returns zero if the function was successful. Otherwise the return value is an error code.

See TSearchRec for a description of the file attribute constants.

© 2000-2004 AidAim Software LLC Single File System: Virtual File Syste