Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the file attributes to use when calling file-access functions.
When you call the Dir, GetAttr, or SetAttr functions, you can use the FileAttribute enumeration in your code in place of the actual values.
The Attributes argument takes the FileAttribute enumeration members.
When performing file I/O operations, the My.Computer.FileSystem object provides greater performance and ease of use than legacy file I/O methods. For more information, see My.Computer.FileSystem Object.
Member |
Constant |
Description |
---|---|---|
Normal |
vbNormal |
Normal (default for Dir and SetAttr). No special characteristics apply to this file. |
ReadOnly |
vbReadOnly |
Read only. |
Hidden |
vbHidden |
Hidden. |
System |
vbSystem |
System file. |
Volume |
vbVolume |
Volume label. This attribute is not valid when used with SetAttr. |
Directory |
vbDirectory |
Directory or folder. |
Archive |
vbArchive |
File has changed since last backup. |
This enumeration is not supported.
Namespace: Microsoft.VisualBasic
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
How to: Refer to an Enumeration Member