|
DriveList$ | ||
List$ = DriveList$() | ||
Parameters: NONE | ||
Returns: List$ = A list of drive letters found in this computer |
||
The DriveList$ function returns a list of drive letters that are available in this computer. The drives letters are returned string form. The returned string will be in the following form "A:C:". In this example, this computer would have an 'A:' drive (floppy device) and 'C:' drive installed FACTS: * Each device is represented with a drive letter followed by a colon. Ie. "C:" If the machine has more than one device present (which should be all machines) the drive letters will be listed like so. "A:C:" etc You can use MID$() function to extract the various device letters. Mini Tutorial: This example reads the current drive (device) list, then 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 storage deviced installed in it.
|
Related Info: | CD | CurrentDrive$ | DriveExist | DriveName$ | DriveReady | DriveSerial : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |