| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Sets file attributes.
SetFAttr( <cFileName>, [<nAttributes>] ) --> nErrorCode
Values for file attributes
| Value | Attribute |
|---|---|
| 0 | Normal |
| 1 | Read only |
| 2 | Hidden |
| 4 | System |
| 8 | Volume |
| 32 | Archived |
The function returns zero on success or a numeric error code on failure.
| 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 |
http://www.xHarbour.com