G
Gabe Matteson
How would I go about excluding a list of specific directories in a listbox
from being queried using the following code? Any ideas? Thank you.
Private Sub rAllStats(ByVal sDir As String)
Try
Dim objFolder As New System.IO.DirectoryInfo(sDir)
Dim objFile As System.IO.FileInfo() = objFolder.GetFiles
Dim sFile As System.IO.FileInfo
For Each objFolder In objFolder.GetDirectories
intTDirCount += 1
rAllStats(objFolder.FullName)
Next
'process files
For Each sFile In objFile
intTFileCount += 1
Next
end try
from being queried using the following code? Any ideas? Thank you.
Private Sub rAllStats(ByVal sDir As String)
Try
Dim objFolder As New System.IO.DirectoryInfo(sDir)
Dim objFile As System.IO.FileInfo() = objFolder.GetFiles
Dim sFile As System.IO.FileInfo
For Each objFolder In objFolder.GetDirectories
intTDirCount += 1
rAllStats(objFolder.FullName)
Next
'process files
For Each sFile In objFile
intTFileCount += 1
Next
end try