Brilliant - that has done the trick :)
thanks very much for the help
here's my solution.......
Private Sub populate(ByVal includeSubDirs As Boolean)
'create a directory
Dim dir As DirectoryInfo = New DirectoryInfo(pathway)
'pass the directory
I'm trying to write a FileIterator class, and what I need to do is list all the files in any given pathway include all subdirectories, digging as far as the hierarchy goes. See my code below, and the problem is that it only searches down one level of the folder structure.
Any help appreiated...