Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 0eh set default drive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: 19h 3bh 3305h 4409h 440eh 440fh

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson