Getting all the full paths of files in a directory

  • Thread starter Thread starter Robert Dufour
  • Start date Start date
R

Robert Dufour

In Vb.net 2003 I need to get all the names of any files that are in a
particular folder, not in it's subfolders and put these in an array so that
I can loop through it after getting the names.

There's a snippet in vb2005 but not in 2003

Any help appreciated greatly,
Bob
 
In Vb.net 2003 I need to get all the names of any files that are in a
particular folder, not in it's subfolders and put these in an array so
that I can loop through it after getting the names.

This...
 
Take a look at the various methods on the classes:

System.IO.Path
System.IO.Directory

Between these two classes, everything you're looking for is in there.
 
Robert,

I would keep it by this one Rory is providing you.

Based on fileinfo and directoryinfo

Cor
 
Back
Top