home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
S12334.ZIP
/
GETDRIVE.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-03-23
|
344b
|
15 lines
'***** GetDrive.Bas - BASIC function that returns the current drive
'syntax: Drive$ = CHR$(GetDrive%)
' where: Drive$ is returned as "A", "B", and so forth
DEFINT A-Z
DECLARE SUB DosQCurDisk(SEG Drive, SEG DriveMap&)
FUNCTION GetDrive%
CALL DosQCurDisk(Drive, DriveMap&)
GetDrive% = (Drive - 1) + ASC("A")
END FUNCTION