Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hard drive directory parser needed
Message
De
02/02/2001 19:10:01
 
 
À
02/02/2001 16:04:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00471992
Message ID:
00472066
Vues:
38
>Hi Folks,
>
>I need a VFP routine/class/code that will parse or crawl through a directory structure and return all the subdirectory names within it. Returning the file names within each subdirectory would be ok too! The subdirectories may go to any number of levels.
>
>Thanks
>Dean

If you need more that ADIR(), you can try the WSH FileSytemObject

oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFolder = oFSO.GetFolder("c:\")
FOR EACH oFile IN oFolder.Files
?oFile.Name
ENDFOR

FOR EACH oSubFolder IN oFolder.SubFolder
?oSubFolder.Name
ENDFOR
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform