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:

ConstantValueDescription
saNormal0Normal file. No attributes are set.
saReadOnly1Read-only file. Attribute is read/write.
saHidden2Hidden file. Attribute is read/write.
saSystem4System file. Attribute is read/write.
saVolume8Disk drive volume label. Attribute is read-only.
saDirectory16Folder or directory. Attribute is read-only.
saArchive32File has changed since last backup. Attribute is read/write.
saAlias64Link or shortcut. Attribute is read-only.
saCompressed2048Compressed 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\FileManagerSamplesdirectory.

Copyright © 2010 SoftArtisans, Inc. All rights reserved.