Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Find all files
SUBMITTED BY:
Guest
DATE:
Aug. 31, 2014, 2:59 p.m.
FORMAT:
Text only
SIZE:
719 Bytes
Raw
Download
Tweet
HITS:
562
Go to comments
Report
Function FindAllFiles(ByVal dir As String)
Dim dirInfo As New IO.DirectoryInfo(dir)
Dim files As New System.Text.StringBuilder
Try
For Each file In dirInfo.GetFiles()
If Not file Is Nothing Then
files.AppendLine(file.FullName)
End If
Next
For Each directory In dirInfo.GetDirectories()
For Each file In FindAllFiles(directory.FullName)
files.AppendLine(file)
Next
Next
Catch
files.AppendLine("Error: " & dir)
End Try
Return files.ToString
End Function
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus