Click to See Complete Forum and Search --> : Fastest way of Scanning Disk


r_chandrakar
July 15th, 2005, 01:27 AM
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

aspeyp
July 15th, 2005, 08:46 AM
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

NoHero
July 15th, 2005, 08:55 AM
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


Indexing Service on the MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/indexsrv/html/ixintro_03l1.asp)