Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adir for folder only
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01408359
Message ID:
01408681
Views:
51
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
Previous
Reply
Map
View

Click here to load this message in the networking platform