>How I Know if a Diskette Drive has a disk inside?
>
>TIA
Easiest to implement is to use the Windows Script Host to do this. You'd simply:
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oDrive = oFSO.GetDrive("A")
? oDrive.IsReady
Other methods, such as DISKSPACE() requires that the API SetErrorMode() function be called twice on some platforms.
You can read more about the Windows Script Host at the VFUG site (
www.vfug.org). Beginning with last September's issue Ed Rauh and I have been doing a series on the WSH. The above technique was described in the November installment.
George
Ubi caritas et amor, deus ibi est