search folder with speed

Hi everybody,

Well I need to find some files on the harddisk, but the problem is its kind of slow. Well there are some good functions like My.Computer.FileSystem.GetFiles() but I need some speed. Is there a function like findquickallfiles() Thanks for your help.


Answer this question

search folder with speed

  • jnouel

    Hello.

    No, sorry. GetFiles() is the quick version.

    - There is the Index Service to which you might speek OLEDB.
    - MSN search should have some API.
    The problem with these is that they need to build/update an index for all your files. So they are not to be trusted to be complete (or activated, even).

    You might consider to use a BackgroundWorker component. This can be set to do the job in the background and fire an event when it is done. You could start the thread on program startup and that way put less waiting on the user.
    http://msdn.microsoft.com/msdnmag/issues/05/03/AdvancedBasics/default.aspx

    Happy threading

  • search folder with speed