Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard drive directory parser needed
Message
From
02/02/2001 19:10:01
 
 
To
02/02/2001 16:04:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00471992
Message ID:
00472066
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform