quote:
Richard, did you try moving the global declaration to the beginning of the script?
No, because I was determining whether or not there is a bug in place rather than a way of avoiding it.

It appears that there is, and it may be significant as it implies that there is uninitialised memory used somewhere.

It needs to be reported as a bug as it may impact more than simply global variable declaration.

quote:
Looks like a DIR() problem whne restarting the DIR enumeration with the same enumeration handle as this works:
Yes, see the first bullet point in my last post [Wink]