|
-
July 15th, 2005, 01:27 AM
#1
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
-
July 15th, 2005, 08:46 AM
#2
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
-
July 15th, 2005, 08:55 AM
#3
Re: Fastest way of Scanning Disk
 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|