Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing A Directory
Message
 
To
23/01/2002 11:32:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00608966
Message ID:
00609064
Views:
35
>do u know how I can get folder names within a directory?

Use ADIR() with an empty string as the file skeleton. First, you'll have to save the current default directory, set the default as the directory you wish to retrieve the folders of, then issue the command. You'll get two more entries in the result array do to the inclusion of the directory itself (shown as ".") and its parent (shown as ".."). Of course, this does not apply to the root directory. Once the command has been issued, you'll need to restore the original default.

With the WSH, however, if it's available all you have to do is iterate through the sub-folders collection.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform