Results 1 to 5 of 5

Thread: Search all folders on disk for files

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Search all folders on disk for files

    Working project example of how to search all the folders on the disk of your computer for files.

    This zip file has two project that do exactly the same thing, that is Scan the hard disk for files. now the project in the zip file ScanFolders.zip uses the FileSystemObject Method to Scan and the ScanFolders2.zip file uses API calls to Scan.


    You will see that the FileSystsem Object project has a completion speed of at least four times greater than the project with the API calls.

    This does not mean that you should not use the FileSystemObject method. it just means that you should not use it when there is a lot of scanning to do. The FileSystemObject method is easier to code and understand which is a plus.


    Enjoy.
    Attached Files Attached Files
    Last edited by randem; Dec 3rd, 2003 at 06:09 PM.

  2. #2
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    Scan them for what? To find them, scan for viruses?

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Madboy
    Scan them for what? To find them, scan for viruses?
    Scan as in search I think...


    Has someone helped you? Then you can Rate their helpful post.

  4. #4
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123
    Originally posted by Madboy
    Scan them for what? To find them, scan for viruses?
    i guess, people should not forget the title of the thread which they click.

  5. #5
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    A comparison against Dir$ would be great. Though, you should restart your computer before each benchmark, since search time greatly improves on second time (atleast on WinXP with Dir$-command and a harddisk with 8MB cache).

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