>>>>BTW, what will directory('a:\temp') return in Windows NT/2000, if there is no disk in the drive in VFP7?
>>>
>>>Hello, Nadya
>>>
>>>It will light the floppy's led, then will return .F. No error message shown on screen.
>>
>>Not if you don't use SetErrorMode() to supress the dialog.
>
>Hi George,
>
>I don't have Windows NT/2000 and I don't have VFP7 (only VFP6). Sergey guessed, what this SetErrorMode was incorporated in the DISKSPACE() and DIRECTORY() functions in VFP7 (in VFP6 they give us an error). Could you please verify this statement? Is it noted in VFP7 readme file?
>
>Thanks in advance.
You get a dialog with DIRECTORY() saying that there isn't a disk in the drive and giving you if you want to cancel, try again or continue if you don't have a disk in the drive. I haven't tried SetErrorMode() with this yet. Under Win2K, however, I'd just use the WSH to determine if the drive is ready. It's an integral part of the system.
George
Ubi caritas et amor, deus ibi est