xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DiskReadyW()

Tests if a drive can be written to.

Syntax

DiskReadyW( [<cDrive>], [<lOSErrorMsg>] ) --> lIsWriteable

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 can be written to, otherwise .F. (false) is returned.

Info

See also:DiskReady(), NetDisk()
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