>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