Results 1 to 5 of 5

Thread: [Resolved][2008]searching subfolders

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    [Resolved][2008]searching subfolders

    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
    Last edited by goldenix; Apr 8th, 2008 at 05:35 PM.

    M.V.B. 2008 Express Edition

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width