IsReady Property |
Description
Returns True if the specified drive is ready; False if it is not.
PowerBASIC Syntax
Return Value
Boolean. VARIANT_TRUE or VARIANT_FALSE.
Remarks
For removable-media drives and CD-ROM drives, IsReady returns True only when the appropriate media is inserted and ready for access.
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM fso AS IFileSystem DIM pDrive AS IDrive DIM bIsReady AS LONG
' Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" ' Get a reference to the IDrive interface pDrive = fso.GetDrive((UCODE$("C:")) ' Check if the drive is ready bIsReady = pDrive.IsReady
|