Attributes Property

 Object: File
 Syntax: Attributes
 Type: Long Integer
 Read/Write: Read/Write (depending on the attribute)
 Description: This property returns the file attributes listed below.

The attributes can have any of the following values or any logical combination of the following values:

Constant Value Description
saNormal 0 Normal file. No attributes are set.
saReadOnly 1 Read-only file. Attribute is read/write.
saHidden 2 Hidden file. Attribute is read/write.
saSystem 4 System file. Attribute is read/write.
saVolume 8 Disk drive volume label. Attribute is read-only.
saDirectory 16 Folder or directory. Attribute is read-only.
saArchive 32 File has changed since last backup. Attribute is read/write.
saAlias 64 Link or shortcut. Attribute is read-only.
saCompressed 2048 Compressed file. Attribute is read-only.

These constants can be found using the IIS 4 or later TypeLibrary feature, or by viewing the vbFileManagerInclude.asp file contained in the .\Samples\FileManagerSamples directory.
 

 

Previous Page Next Page