xHarbour Reference Documentation > Function Reference |
Returns the current disk drive.
DiskName() --> cDrive
The return value is a single character specifying the current disk drive.
The function is used to retrieve the drive letter of the current disk drive.
See also: | CurDrive(), CurDir(), DiskChange(), DiskSpace(), IsDisk() |
Category: | Directory functions , File functions |
Source: | rtl\dirdrive.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example queries and changes the current disk drive PROCEDURE Main ? DiskName() // result: C ? DiskChange( "D" ) // result: .T. ? DiskName() // result: D RETURN
http://www.xHarbour.com