CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Location
    India
    Posts
    18

    Question Fastest way of Scanning Disk

    Hi,

    I'm scanning whole disk for files and folders and storing some attributes in structure. Currently i'm using FindFirstFile () and FindNextFile to scan disk and retrive attributes. This is taking approximately 15 minutes for complete scanning of approximately 50 GB data, but, windows searc files and folders option searchs all this within 4 minutes.

    So please suggest me the way to improve the performance.
    Is there any way to access Filesystem index???? If i'll be able to access FileSystem index then scanning will be very fast.

    Ravindra

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, Netherlands
    Posts
    25

    Re: Fastest way of Scanning Disk

    I don't know whether this helps, but when I found myself confronted by this problem I resorted to making a little DLL using Visual Basic purely to make use of the Size property of the Folder object. I then call this function from my C++ program and it works just as fast as the usual Windows Shell function. Why this function or property isn't directly available in the C++ environment, I don't know.

    Peter

  3. #3
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Fastest way of Scanning Disk

    Quote Originally Posted by r_chandrakar
    Hi,

    I'm scanning whole disk for files and folders and storing some attributes in structure. Currently i'm using FindFirstFile () and FindNextFile to scan disk and retrive attributes. This is taking approximately 15 minutes for complete scanning of approximately 50 GB data, but, windows searc files and folders option searchs all this within 4 minutes.

    So please suggest me the way to improve the performance.
    Is there any way to access Filesystem index???? If i'll be able to access FileSystem index then scanning will be very fast.

    Ravindra
    Last edited by NoHero; July 15th, 2005 at 08:56 AM. Reason: fixed spelling again
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

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

Featured