well, seeing as the recursion on happens each time the code meets a directory, as i dont have that many folders i can only think the problem is size related rather than number of recursions. hmmmmmmm will have to just put a limit on the number of files to a sensible number despite what the customer wants. Thanks for the help folks