>Hi everyone,
>
>I've just thought about something and made a quick test. Usually we have this kind of code:
>
if not directory(m.lcDir)
> md (m.lcDir)
>endif
>
>I decided to test it on "a" drive without disk inserted. To my surprise and relief, directory() function works fine. However, md command gave an error "File Access is denied". So, what do you think, what kind of code would be more correct? (Besides trapping for error, of course).
>
>Thanks in advance.
I'd definitely use the Scripting.FileSystemObject to get a reference to the drive and check its status via the IsReady property. If the disk is a floppy, IsReady will return false and I'd check prior to using the directory function call.
George
Ubi caritas et amor, deus ibi est