Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_isdrive() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ISDRIVE()

 DESCRIPTION

 C_ISDRIVE() checks a specified drive and determines whether the
 drive is ready for accessing.  Any type of floppy or hard disk
 drive can be checked, including drives that are connected to
 secondary controllers.

 SYNTAX

 C_ISDRIVE(drive)

 PARAMETERS

 drive (C/N) is the drive to check.  The drive argument can be
 specified by the drive letter (A, B, C, etc.) or by the drive
 number (1 = A, 2 = B, 3 = C, etc.).

 RETURNS

 C_ISDRIVE() returns true (.T.) if the specified drive is ready for
 access, or false (.F.) if it is not ready.

 EXAMPLES

 ? c_isdrive("A")  --> .T.      && Check various drives
 ? c_isdrive("A:") --> .T.
 ? c_isdrive(1)    --> .T.
 ? c_isdrive("C")  --> .T.

 if !c_isdrive("A:")            && Check drive before copying file
   ? "Drive A: Not Ready"
 else
   copy file text.fil to a:\text.fil
 endif


See Also: C_DISKSTAT() C_ISFIXED() C_FSPACE() C_DISKTYPE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson