>>>Hi everybody,
>>>
>>>I've just received control on Distribution application. This application is quite complicated, but here is one method, which looks suspicious to me:
>>< snip >
>>>
>>>I believe, on some systems if drive is not ready, we'll see the system level error (Windows error) and not VFP error. I have IsDriveReady function, which uses WSH. Do you think, I should re-write this method?
>>>
>>>What would be your suggestions?
>>>
>>>Thanks in advance.
>>
>>"If it ain't broken, don't fix it". :)
>>Under NT/WIn2K you'll get Windows dialog if there's no diskette in the floppy drive. If you concern about that add a few lines of code from mskb #
Q191501 to supress those messages.
>>BTW, looks like the technique from this mskb is implemented in VFP7 because no Windows messages generated in VFP7 under the same conditions that causes them under VFP6.
>
>I've tried this code on Windows NT 4.0 and it didn't give me a Windows error message.
What code we're talking about?
--sb--