My link was meant to take you to hixxy's reply but somehow I omitted the anchor so it linked to the first post of the thread, sorry about that. And yes, the connection was just $findfile(): hixxy explains why using it in a while loop is bad and how you can avoid that, by using $findfile()'s internal looping feature. For example, this:
while (%i < %total) {
someCommand $findfile(c:\,*,%i)
inc %i
}
is much slower than this:
noop $findfile(c:\,*,0,someCommand $1-)