R
roidy
I`ve go the following code to return all the .txt files in a directory but
NOT in any sub-directories:-
For Each str As String In My.Computer.FileSystem.GetFiles("c:\Folder", _
FileIO.SearchOption.SearchTopLevelOnly,
_
"*.txt")
....... Do some stuff with the files
Next
However even with FileIO.SearchOption.SearchTopLevelOnly set it still
returns files that are in sub-directories, any idea why?
Rob
NOT in any sub-directories:-
For Each str As String In My.Computer.FileSystem.GetFiles("c:\Folder", _
FileIO.SearchOption.SearchTopLevelOnly,
_
"*.txt")
....... Do some stuff with the files
Next
However even with FileIO.SearchOption.SearchTopLevelOnly set it still
returns files that are in sub-directories, any idea why?
Rob