Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a collection of sub folders from a parent folder
Message
De
09/11/1999 09:37:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00288982
Message ID:
00288984
Vues:
22
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform