>>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.
>
>Under Win2K it triggers a system message box with "Cancel", "Try Again" and "Continue" buttons.
>
>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).
>>
>
>
>See Message #
320074.
Thanks. So, directory() function is OS dependant (I have Windows 98 at home). I was thinking along those lines, but it means, what we have to examine each piece of code and make changes... Of course, we're never checking for directory on unexisting drive, but we never know...
Thanks again.
If it's not broken, fix it until it is.
My Blog