Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for a way to scan through sub-directories
Message
 
To
21/10/1998 09:12:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00148847
Message ID:
00148904
Views:
14
>Is their a way that I can scan through and set paths to individual subdirectories on my hard drive. I have about 30 individual sets of data in subdirectories that i need to import and am looking for a way to scan through them individually and import each one of them one at a time.
>
>Thanks
>Darren In Atlanta

Hi Darren,

Just to add one note to what Ed said. In order to properly retrieve all the child directories, you must use SET DEFAULT to the directory, otherwise they won't be properly returned. If "C:\Mydir\*." any directories having an extension won't be returned. So you'd have to use:
lccurrentdir = SYS(5) + CURDIR()
SET DEFAULT TO C:\Mydir
= ADIR(a_dir, "", 'D')
SET DEFAULT TO (lccurrentdir)
in order to get all the directories.
George

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

Click here to load this message in the networking platform