Returns the first filename that matches the specified pattern.
Parameters:
|
FileSpec |
Variant * |
File Specification |
|
Attributes |
Variant * |
File attributes (optional) |
|
0 |
Returns normal files |
|
2 |
Returns normal and hidden files |
|
4 |
Returns normal and system files |
|
8 |
Returns the volume label |
|
16 |
Returns directory names |
Remarks:
Values for Attributes can be added to specify files with multiple attributes. For example, to return hidden and system files, in addition to normal files, set Attributes to 6 (2+4=6). The default value for Attributes is 0.