Quote Originally Posted by Justa Lol
nah i have no sub directories, only over 10000 files in 1 directory, and when i search it gives me an error "to many files."
Too many open files maybe? I don't see any close command in that code, try closing the file after the input.

Open mypath & p For Binary As #ff
strbuff = Input(LOF(ff), ff)
Close #ff