Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() to get directories
Message
 
To
08/12/2003 16:04:29
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856932
Message ID:
00856949
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform