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 following FileAttribute enumeration members:
| 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. |
| Directory | vbDirectory | Directory or folder. |
| Archive | vbArchive | File has changed since last backup. |
Namespace: Microsoft.VisualBasic
Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)