Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() to get directories
Message
 
À
08/12/2003 16:04:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856932
Message ID:
00856949
Vues:
15
>This will work, but is there anyway to get only the directories and not the files?
>
>Thanks,
>
Jerry,

In order to get the directories (which will include "." and "..") you need to set the target directory to be the current using SET DEFAULT TO...
Then you need to pass an empty string as the file skeleton and the "D" attribute.

IMO, using the Windows Script Host's Scripting.FileSystemObject is a much cleaner method.
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