I don't know. I'm getting the same results as Christophe. And my entire script is just the snippet of his from above.

First off though, Christophe should either set $path = "c:" or change is dir calls to "$path*.txt", because right now it's doing a dir on "c:\\*.txt".

And, with the little testing I have done, if the last dir call is changed to just dir(), it works fine. I'll look at it some more.

I'm using kix 4.21 on win XP.
_________________________
Eric