Results 1 to 13 of 13

Thread: [RESOLVED] [2005]Searching files and folders

Threaded View

  1. #1

    Thread Starter
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Resolved [RESOLVED] [2005]Searching files and folders

    Hello everyone..
    I have this problem in making a simple search like the windows search to search files and folders.
    I want it to search within the specified folder and subfolders inside it...and return all the files matching the query.

    Here is what Ive tried.,.
    VB Code:
    1. Dim s As String = TextBox1.Text
    2.         For Each file As String In My.Computer.FileSystem.GetFiles("c:\", FileIO.SearchOption.SearchAllSubDirectories, s)
    3.             ListView1.Items.Add(file)
    4.         Next file
    .but the problem is...My program freezes till the search ends unlike the windows search.

    Someone help...Thank you so much in advance :-)
    Last edited by uniquegodwin; Apr 13th, 2006 at 03:22 AM. Reason: Specifying version
    Godwin

    Help someone else with what someone helped you!

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