Dir (pathname[, fileattributes])
The attributes argument settings are:
Constant | Value | Description |
---|---|---|
Normal | 0 | (Default) Specifies files with no attributes. |
ReadOnly | 1 | Specifies read-only files in addition to files with no attributes. |
Hidden | 2 | Specifies hidden files in addition to files with no attributes. |
System | 4 | Specifies system files in addition to files with no attributes. |
Volume | 8 | Specifies volume label if any other attributed is specified; vbVolume is ignored. |
Directory | 16 | Specifies directories or folders in addition to files with no attributes. |
Note These constants are specified by Visual Basic for Applications and can be used anywhere in your code in place of the actual values.
Dir supports the use of multiple character (*) and single character (?) wildcards to specify multiple files.
ChDir Statement | CurDir Function | MacID Function | Returning Strings from Functions