Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for a way to scan through sub-directories
Message
 
À
21/10/1998 09:12:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00148847
Message ID:
00148904
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform