yes, yes, I know that much, that's why I wanted to see ACTUALL code... not a mock up approximation of what you're doing...

OH... woah... "as OBJECT" ???? Oh.... that is your issue... you should be using the actual type... okay.. hang on... Ahh... oh carp... I'm just now noticing this is VB6.. I was going to suggest using the DirectroyInfo object instead, but that's .NET....

OK... I'm going to have to work from memory and put on my wayback hat... I'll get back to it this evening unless someone else beats me to it...

-tg