Hey there,
I was working on a project that was requiring a "file search" operation...
so i used the following code...
Well, i was running the whole program on my winXP box butCode: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
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






Reply With Quote