# File Attribute Flags

    Const FILE_ATTRIBUTE_ARCHIVE = &H20
    Const FILE_ATTRIBUTE_COMPRESSED = &H800
    Const FILE_ATTRIBUTE_DIRECTORY = &H10
    Const FILE_ATTRIBUTE_HIDDEN = &H2
    Const FILE_ATTRIBUTE_NORMAL = &H80
    Const FILE_ATTRIBUTE_READONLY = &H1
    Const FILE_ATTRIBUTE_SYSTEM = &H4

The file attribute flags determine the attributes of a file or a directory. Any combination of them may be used with the exception of FILE_ATTRIBUTE_NORMAL, which can only be used alone.

FILE_ATTRIBUTE_ARCHIVE
  An archive file (which most files are).
FILE_ATTRIBUTE_COMPRESSED
  A file residing in a compressed drive or directory.
FILE_ATTRIBUTE_DIRECTORY
  A directory instead of a file.
FILE_ATTRIBUTE_HIDDEN
  A hidden file (not normally visible to the user).
FILE_ATTRIBUTE_NORMAL
  An attribute-less file.
FILE_ATTRIBUTE_READONLY
  A read-only file.
FILE_ATTRIBUTE_SYSTEM
  A system file (one used exclusively by the operating system).

Used by: GetFileAttributes, SetFileAttributes
Back to the index.