Well looks like 99% of the codes I found in the help file & in this forum are broken, they simply arent working. I get errors like file type not defined, or not declared.
I know this is simple, but i just cant figure out how can i make it search further than 1 sub folder. I heard that this should be done recrusively, but I dont really understand how that thing works. Mayb someone can help me out hire?
This is my code so far, that works it cant search Drives tho..
Code:Dim startdir = "C:\New Folder\" For Each listfolders As String In My.Computer.FileSystem.GetDirectories(startdir) Me.ListBox1.Items.Add(listfolders) For Each listfiles As String In My.Computer.FileSystem.GetFiles(listfolders) Me.ListBox1.Items.Add(listfiles) Next Next





Reply With Quote