Get all files from sub folders
I have this code to get files from a folder location on my hard drive.
How can I get all files from sub folders in this folder?
vb.net Code:
Dim FileLocation As String = "C:\MyFiles\"
Dim di As New IO.DirectoryInfo(FileLocation)
Dim Files As IO.FileInfo() = di.GetFiles()
Re: Get all files from sub folders
By using the documentation and seeing that there is an overload version of GetFiles that
Quote:
Originally Posted by MSDN
specifies whether the search operation should include only the current directory or all subdirectories.
And it too comes with its own documentation as well.
-tg