xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SetFAttr()

Sets file attributes.

Syntax

SetFAttr( <cFileName>, [<nAttributes>] ) --> nErrorCode

Arguments

<cFileName>
This is a character string holding the name of the file to set attributes for. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory only.
<nAttributes>
This is a numeric value specifying the file attributes to set. Values of the following list are used for file attributes. To specifiy multiple attributes, pass the sum of the corresponding values:

Values for file attributes
ValueAttribute
0Normal
1Read only
2Hidden
4System
8Volume
32Archived

Return

The function returns zero on success or a numeric error code on failure.

Info

See also:BitToC(), CtoBit(), FileAttr(), FileSeek()
Category: CT:DiskUtil , File functions , Low level file functions
Source:ct\files.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe