if it works, the code can be easily modified to go for the folder and do for each $file in $folder.items

that should give a bit of speed and since we are talking about 6000000 files, all speed is good speed ;\)
_________________________
!

download KiXnet