Microsoft® Visual Basic® Scripting Edition
File Attribute Constants
 Language 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.
Volume 8 Disk drive volume label.
Directory 16 Folder or directory.
Archive 32 File has changed since last backup.
Alias 64 Link or shortcut.
Compressed 128 Compressed file.


© 1997 by Microsoft Corporation. All rights reserved.