Hey there,

I was working on a project that was requiring a "file search" operation...
so i used the following code...


Code:
Dim vbforums As New IO.DirectoryInfo(FileIO.SpecialDirectories.Desktop)
For Each dir As IO.DirectoryInfo In vbforums.GetDirectories

If Not ((dir.Attributes And IO.FileAttributes.System) = IO.FileAttributes.System) Then
ListBox1.Items.AddRange(IO.Directory.GetFiles(dir.FullName, "*.txt", IO.SearchOption.AllDirectories))
End If

Next
Well, i was running the whole program on my winXP box but
unfortunatelly when i finished the project (22 days later)
and tried it on Vista it simply didnt work

So do i have to change something?
I dont even want to think that i have to use Dir1 and File1 lol