Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR() to get directories
Message
De
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:
00856948
Vues:
15
This will work, but is there anyway to get only the directories and not the files?

Thanks,

Jerry



>=ADIR(myarray, [C:\test\*.*], "D")
>
>>Using VFP8.
>>
>>I am trying to get a list of sub-directories from a passed in directory. The following works fine except when a sub-directory contains a dot in it's name.
>>
>>
>>***This will capture all directories in c:\test\ EXCEPT for
>>***directories named like this:
>>***c:\test\10.2.0.1\
>>***c:\test\12.1.3.4\
>>***etc..
>>
>>=ADIR(myarray, [C:\test\*.], "D")
>>DISPLAY MEMORY LIKE myarray
>>
>>
>>Is there a better way to capture all sub-directories or a way to get every sub-directory in a folder?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform