after some hours debugging, the for each seems to be working correctly.
my head is spinning trying to debug my debug output :P

the workaround for the getfiles is posted everywhere, like: http://www.codeproject.com/Articles/38258/How-to-Get-a-List-of-Files-and-Folders-Without-Dir

funny thing is, microsoft doesn't still see the issue here and all coders end up using all sort of workarounds to fix the software giants shortcomings.

anyhow, there is an issue with array declaration handling as you noted. I will try to get this sorted out as it should be a rather simple thing to fix.
_________________________
!

download KiXnet