Function 0Eh            Set Default Drive

Sets the default drive and returns the number of logical drives in
the system.

Entry AH = 0Eh
DL = Drive number (0 = A, 1 = B, 2 = C etc.)

Return AL = Number of logical drives in the system

──────────────────────────────────────────────────────────────────

The return value includes floppy disk drives, RAM disks, and
logical drives on any hard disks in the system.

The number of logical drives in the system is not necessarily the
same as the number of physical drives. In addition, the number of
logical drives returned may not map directly to drive letters.

If the CONFIG.SYS file contains a LASTDRIVE statement, this
function returns either the number of logical drives for the
computer or the number of drives specified by LASTDRIVE, whichever
is larger (extra drive numbers are not valid until a connection to
a physical drive is established). LASTDRIVE defaults to E:
returning AL = 05h.


The drive number used by Set/Get Default Drive (functions 0Eh and
19h) is one less than the drive number used by other functions.