We have encountered an unexpected performance issue when traversing directories looking for files using a wildcard pattern.
We have 180 folders each containing 10,00
You can try with an implementation of FindFirstFile and FindNextFile I once blogged about.
FindFirstFile
FindNextFile