Get a list of all files inside of a directory in vb.net

Cyclone picture Cyclone · Sep 22, 2009 · Viewed 53.5k times · Source

How can you obtain a list of files (as a stringcollection or some other storage method) which contains the full path on the user's computer to the files?

Is there a method for doing so?

Answer

brettkelly picture brettkelly · Sep 22, 2009

It looks like you want to use Directory.GetFiles() in the System.IO namespace.

Docs here.