>>do u know how I can get folder names within a directory?
>
>adir(laFolders, '*.*', 'D')
The only problem with this is that you get
all files and folders. The attribute parameter causes them to be included and does not exclude files with different attributes. Correct is
ADIR(laFolders, "", "D")
Using your example, a folder with 4 sub-folders returns 165 rows in the array. Using my method, it returns 6 (the four sub-folders, the folder itself, and its parent).
George
Ubi caritas et amor, deus ibi est