Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
vb.net enumerate files from folder
Name: jamesc Date: September 21, 2006 at 04:15:39 Pacific OS: n/a CPU/Ram: n/a Product: n/a
Comment:
Hey guys,
Im using vb.net, im trying to enumerate all files (only files) from a folder and any sub folders it may have. I want this to happen one by one. I have found many different ways of doing this, but i cant gte it to enumerate from sub folders as well. Also, id prefer it if only the actual filename and extension was shown instead of the full path to each file. Any help is appreciated.
To be fair, ive got it it almost working, i just cant get it enumerating files from subfolders within c:\test, here is what i have.
Dim Directory As New IO.DirectoryInfo("c:\test") Dim allFiles As IO.FileInfo() = Directory.GetFiles("*.*") Dim singleFile As IO.FileInfo
Summary: Hi gurus, I need to write a batch script to copy the files from first folder, that begin with a perticular string (say begin with test, having files test1, test 2 etc) to folder B. We need to copy all...
Summary: Hello, I'm still new to programming, and then I switched from VB5 to VB.NET, so I'm really confused. I'm trying to do two things. First, I'm trying open a MSWord document using the system's defau...
Summary: I am new to VB .NET. I am trying to select a file and saving it with another name, but file is not being saved with new name. Kindly advise. The code is: Private Sub btnOpenFile_Click(ByVal sender...