xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DiskReady()

Test if a disk drive is ready.

Syntax

DiskReady( [<cDrive>], [<lOSErrorMsg>] ) --> lDriveIsReady

Arguments

<cDrive>
This is a single character (A-Z) specifying the disk drive to test. It defaults to CurDrive().
<lOSErrorMsg>
This parameter defaults to .T. (true), causing the operating system to prompt to user for inserting a disk if no disk is inserted in a floppy drive. Passing .F. (false) for <lOSErrorMsg> suppresses the operating system error message.

Return

The return value is .T. (true) when the specified drive is ready, otherwise .F. (false) is returned.

Info

See also:DiskReadyW(), IsDisk()
Category: CT:DiskUtil , Disks and Drives
Source:ct\diskutil.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe