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
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
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