Function 19h Get Default Drive

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.

Parameters

This function has no parameters.

Return Value

The AL register contains the drive number (0 = A, 1 = B, and so on).

See Also

Function 0Eh Set Default Drive