FoundFiles = Pm.FileFind(sPath, sName, nAttr)
|sPath||(String) Path where to find the files. |
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
|sName||(String) File names that have to be found; wild charactes * and ? can be used|
|nAttr||(Long) Bit attribute. The value is a bit combination :|
1 - Don't look in subfolders
2 - Return absolute paths
4 - Find even folders
8 - Find only subfolders; overwrites attribute 4
16 - The output array is sorted by creation time of files
32 - The output array is sorted by file name
64 - The output array is sorted by the file extension
128 - The output array is sorted bottom-up (from the smallest to the biggest = aa, ab, ba, bb, c, d ...). Othewise the sorting is top-down (from the biggest to the smallest = zz, zy, yz, yy, x, w, ...). Value 0 means to find only files, not folders.
256 - File names will be returned without extension
512 - Sorts the output array by the last write time of the files
If only one file has been found, then the array has only one item.
If no file has been found, then the array has no items (upper index UBound=-1).
Dim aFiles, i
For i=0 To UBound(aFiles)