Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adir for folder only
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01408359
Message ID:
01408681
Vues:
50
Our answers were based on your exact question. If you want folders only (and no files) then use suggestion suggested by me and Gregory, but don't forget to restore the original directory.

If you only have directories there anyway, then you don't have to switch current directory.

>Hi Folks. Thanks for all your help.
>
>Doing a :
> ADIR(ladir,"C:\temp\*.","D")
> seems to work and gives me just subfolders down 1 level, including . and .. which I can work around.
>
>This seems to work without doing a CD or Set Default.
>The Sub folders I am interested in will not have a suffix after the dot
>
>Most of replies and threads seemed to suggest that a CD or Set Default would be required.
>Am I missing something ?
>
>Regards,
>Gerard
>
>
>>>Hi.
>>>Is there a way to use Adir just to get a list of Subfolders , just down 1 level
>>>
>>
>>
>>CD < folder name >
>>ADIR(laList, "", "D")
>>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform