ok, thanks a lot guys. i'll use that code Thread1. i guess put the directory's contents in an array and loop through each file.