GETDRIVE

Format

string1 = GETDRIVE ()

Description

This function will return the drive letter of the current DOS disk drive.

Example

DRIVE$ = GETDRIVE()
PRINT DRIVE$
If the current disk drive was drive "C", the above sample code would cause "C:" to be printed on the screen.

See Also

  • GETDIR