Published in: VB.NET
Simple directory recursion
Private Sub RecurseDir(ByVal path As String) Dim s As String 'recurse down thru each folder For Each s In IO.Directory.GetDirectories(path) RecurseDir(s) Next 'then print files For Each s In IO.Directory.GetFiles(path) Console.WriteLine(s) Next End Sub
You need to login to post a comment.
