You should be able to get what you want from the ADIR() function.
mnumdirs = adir(myarray, "c:\parent", "D")
Is that what you were looking for?
>I looked in the files section and didn't see anything like what I'm looking for, yet I feel someone has done this in all likelihood.
>
>I want to pass a folder path to an object/method/prg and have an array populated with each child/grandchild/etc folder name. As an example consider the following folder layout:
>
>C:\Application
> Data
> Backup
> Documents
> Admin
> Finance
> Sales
>
>If I pass C:\Application to the method, an array would be populated with 7 rows:
>
>C:\Application
>C:\Application\Data
>C:\Application\Data\Backup
>C:\Application\Documents
>C:\Application\Documents\Admin
>C:\Application\Documents\Finance
>C:\Application\Documents\Sales
>
>Anyone have anything like this or can anyone point me something like this? I'm pretty flexible on the implementation and early enough on in the development to adjust. Thanks in advance.
--Todd Sherman
-Wake Up! Smell the Coffee!