File Attribute Constants

Office VBScript

Microsoft® Visual Basic® Scripting Edition File Attribute Constants  Scripting Run-Time Reference 
Version 3 

See Also



These constants are only available when your project has an explicit reference to the appropriate type library containing these constant definitions. For VBScript, you must explicitly declare these constants in your code.

Constant Value Description
Normal 0 Normal file. No attributes are set.
ReadOnly 1 Read-only file.
Hidden 2 Hidden file.
System 4 System file.
Directory 16 Folder or directory.
Archive 32 File has changed since last backup.
Alias 1024 Link or shortcut.
Compressed 2048 Compressed file.