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