Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing A Directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00608966
Message ID:
00609103
Vues:
23
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform