Jonathan,
>You should be careful using this approach, as directories can have a period in them (e.g. "C:\Data.tmp\"). Also, this will pick up files that don't have an extension.
You're absolutely right! I didn't think of these things, giving that fast reply. George has posted a good and working piece of code. And what he writes is really in the help file. Sometimes I should remember: RTFM before posting a message <vbg>.
Thanks for jumping in!
Armin