>AFter reading the doc it looks like i will have to try a different
>approach
[quoted text clipped - 5 lines]
>
>if you have any suggestions please let me know
One way -
This Mainpages folder contains a mix of files with .htm & .html extensions.
The resulting displayed listbox displays only the files with the .htm extensions.
Dim di As New DirectoryInfo("E:\Web Projects\Mainpages")
Dim fi As FileInfo() = di.GetFiles("*.htm")
For Each fiTemp As FileInfo In fi
If fiTemp.Extension = ".htm" Then
Me.ListBox1.Items.Add(fiTemp.Name)
End If
Next
Gene
frogman7 - 13 Oct 2006 21:12 GMT
what i am trying to do is something similar to the search that windows
does to find files and folders. I am putting a start directory and
want to find all the file (including the files in the sub folders) so i
can write each line to a master file. i have it working but it uses
loops and it extremely slow. Is there a function that grabs all the
files from a folder and subdirecies?
iqubal@gmail.com - 30 Nov 2006 17:22 GMT
Do it Like this
FileInfo Myfile = new FileInfo(strFiles[i]);
if (Myfile.Extension.Length==4)
{
}