It seems $findfilen uses a 16-bit unsigned integer which results in it wrapping back to 0 upon reaching the 65536th file.

Experienced on Vista Ultimate 32-bit.


Spelling mistakes, grammatical errors, and stupid comments are intentional.