HB_CurDrive
Return the current OS drive
Syntax
HB_CurDrive() --> cDrive
Returns
HB_CurDrive() returns the letter of the current DOS drive, without a trailing colon.
Examples
? HB_CurDrive() // D ? DiskChange() // .F. ? DiskChange( "C" ) // .T. ? HB_CurDrive() // C . This example illustrates the relationship between HB_CurDrive()and DISKCHANGE() and shows that HB_CurDrive() is unaffected by the SET DEFAULT TO command: ? HB_CurDrive() // C SET DEFAULT TO A ? HB_CurDrive() // C DISKCHANGE("A") ? HB_CurDrive() // A DISKCHANGE("C") ? HB_CurDrive() // C
Seealso
CurDir(), DiskChange(), DiskName()