GetFiles from directory and all subdirectories.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am trying to write a small program in VB.NET which needs to get all the
filenames (paths) in all

subdirectories.

I want just be able to specify a top level directory e.g. "c:\images" -
which may have several

subdirectories and go down to a number levels with subdirectories within them.

Here's what I have done so far but this just gets the filenames and
directories in the c:\images but

doesn't get filename from directories within here.

imports system.io
dim folder as filesysteminfo
dim files() as string

files = folder.getfilesystementries("c:\images")


Any help will be very much appreciated. Many thanks
 
Back
Top