I'm writing a program which scans the HDD with a recursive FindFirstFile etc. Works great but the first time I run it after reboot, it takes about 75 seconds, the second time about 3 seconds and subsequently.
Clearly the info is getting cached either in the HDD memory or in Windows cache.
Is there any way of clearing this so I can replicate the slowness of the first time run, without the need to reboot ?
Programming or any other solution would be fine.