|
DriveReady | ||
Status = DriveReady() | ||
Parameters: NONE | ||
Returns: Status = 0= the drive is not ready, 1 = drive ready |
||
The DriveReady function returns the drive status of selected drive letter. This allows you to check if a removable drives have media currently in them. FACTS: * Always check to a drive is ready before attempting to query information about it, such as it's volume name, serial and even when dealing files or folders. The reason for this, is user may be running this program or directing your program to read/write information to a drive that currently has no media stored in it. Like floppy, CD, or DVD drives Mini Tutorial: This example reads the current drive list than displays the volume name, serial and ready status of each one.
This example will return something like the following. It's output will differ on each computer, as each computer have a different collection of drives installed in it.
|
Related Info: | DriveExist | DriveList$ | DriveName$ | DriveSerial : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |