|
DriveName$ | ||
Name$ = DriveName$() | ||
Parameters: NONE | ||
Returns: Name$ = The volume name of the current device |
||
The DriveName$ function the volume name of selected drive letter. FACTS: * Always check if a drive (device) 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 that the user running your program may be directing your program to read/write information to a drive(device) that has no media 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$ | DriveReady | DriveSerial : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |