description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: File Attribute Constants | File Attribute Constants | 11/04/2016 |
|
| 8dc8ccb9-99f5-446b-876c-7ebecc2f764f |
#include<io.h>
These constants specify the current attributes of the file or directory specified by the function.
The attributes are represented by the following manifest constants:
Constant | Description |
---|---|
_A_ARCH | Archive. Set whenever the file is changed, and cleared by the BACKUP command. Value: 0x20 |
_A_HIDDEN | Hidden file. Not normally seen with the DIR command, unless the /AH option is used. Returns information about both normal files and files with this attribute. Value: 0x02 |
_A_NORMAL | Normal. File can be read or written to without restriction. Value: 0x00 |
_A_RDONLY | Read-only. File can't be opened for writing, and a file with the same name can't be created. Value: 0x01 |
_A_SUBDIR | Subdirectory. Value: 0x10 |
_A_SYSTEM | System file. Not normally seen with the DIR command, unless the /AS option is used. Value: 0x04 |
Multiple constants can be combined with the OR operator (|
).