GetFiles from directory and all subdirectories.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top