Previous Topic: Windows ValuesNext Topic: Windows Account Flags


Windows File Attributes

Attributes can be assigned to a file by using the chfile, editfile, and newfile commands. Attributes determine the character of the file.

Note: Although the full name for these file attributes is FILE_ATTRIBUTE_name, CA ControlMinder only requires you to enter the name portion (for example, ARCHIVE or COMPRESSED).

The following lists and describes the file attributes that you can modify in Windows.

FILE_ATTRIBUTE_ARCHIVE

An archival file; a file marked for backup or removal.

FILE_ATTRIBUTE_HIDDEN

A hidden file. Hidden files are not normally included in an ordinary directory listing.

FILE_ATTRIBUTE_NORMAL

A file with no other attributes. This value is only valid when used alone.

FILE_ATTRIBUTE_READONLY

A read‑only file. Applications can read the file, but cannot write in it or delete it.

FILE_ATTRIBUTE_SYSTEM

An operating system file or a file used exclusively by the operating system.

FILE_ATTRIBUTE_TEMPORARY

A file being used for temporary storage.

The following lists and describes the file attributes that you cannot modify in Windows.

FILE_ATTRIBUTE_COMPRESSED

A compressed file or directory. For files, this means all the data in the file is compressed; for directories, this means that all newly created files and subdirectories are compressed by default.

FILE_ATTRIBUTE_DIRECTORY

A directory.

More information:

chfile Command—Modify Windows File Settings