Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing A Directory
Message
 
À
23/01/2002 11:32:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00608966
Message ID:
00609064
Vues:
34
>do u know how I can get folder names within a directory?

Use ADIR() with an empty string as the file skeleton. First, you'll have to save the current default directory, set the default as the directory you wish to retrieve the folders of, then issue the command. You'll get two more entries in the result array do to the inclusion of the directory itself (shown as ".") and its parent (shown as ".."). Of course, this does not apply to the root directory. Once the command has been issued, you'll need to restore the original default.

With the WSH, however, if it's available all you have to do is iterate through the sub-folders collection.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform