PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
GetFiles from directory and all subdirectories.
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
GetFiles from directory and all subdirectories.
![]() |
GetFiles from directory and all subdirectories. |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi,
read at the MS Lin http://msdn.microsoft.com/library/d...oclasstopic.asp also you need to see 1. http://msdn.microsoft.com/library/d...toriestopic.asp 2. http://msdn.microsoft.com/library/d...minfostopic.asp With Regards, Kunal Cheda. http://www.KCheda.com "Student" wrote: > 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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
"Student" <Student@discussions.microsoft.com> schrieb:
> I am trying to write a small program in VB.NET which needs to get all the > filenames (paths) in all subdirectories. <URL:http://dotnet.mvps.org/dotnet/samples/filesystem/FileSystemEnumerator.zip> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

