mov ah, 19h ;Get Default Drive
int 21h
mov DriveNumber, al ;drive (0 = A, 1 = B, etc.)
Get Default Drive (Function 19h) returns the number of the default drive.
This function has no parameters.
The AL register contains the drive number (0 = A, 1 = B, and so on).
Function 0Eh Set Default Drive