FT DOS/BIOS

 FT_CHDIR()       Change the current directory
 FT_DEFAULT()     Retrieve and optionally change the current default drive
 FT_DOSVER()      Return the current DOS major and minor version as a string
 FT_DSKFREE()     Return the amount of available disk space
 FT_DSKSIZE()     Return the maximum capacity of a fixed disk
 FT_FLOPTST()     Test diskette drive status
 FT_HANDCNT()     Count number of available DOS (not network) file handles
 FT_INP()         Retrieve a byte from a specified I/O port
 FT_INT86()       Execute a software interrupt
 FT_ISPRINT()     Check printer status
 FT_ISSHARE()     Determine if DOS "Share" is installed
 FT_MKDIR()       Create a subdirectory
 FT_OUTP()        Write a byte to a specified I/O port
 FT_PEEK()        Retrieve a byte from a specified memory location.
 FT_POKE()        Write a byte to a specified memory location
 FT_REBOOT()      Force a warm or cold boot
 FT_RMDIR()       Delete a subdirectory
 FT_SETDATE()     Set the DOS system date
 FT_SETTIME()     Set the DOS system time
 FT_SYSMEM()      Determine the amount of conventional memory installed
 FT_TEMPFIL()     Create a file with a unique name

FT_DEFAULT

FT_DEFAULT()
 Retrieve and optionally change the current default drive

 Syntax

     FT_DEFAULT( [ <cDrive> ] ) -> cDrive

 Arguments

    <cDrive> is optional, and if specified is the new default drive.

 Returns

    The current default drive.  If a change of default drive is requested,
    the return value is the drive AFTER the change is made.  This allows
    you to make sure you specified a valid drive (i.e. if you attempt to
    change the default drive, and the function returns a different drive
    letter than the one you specified, then the drive does not exist).

 Description

    Useful any time you need to know or change the default drive.

    The source code is written to adhere to Turbo Assembler's IDEAL mode.
    To use another assembler, you will need to rearrange the PROC and
    SEGMENT directives, and also the ENDP and ENDS directives (a very
    minor task).

 Examples

    cDrive := FT_DEFAULT()  && Get the current drive
    FT_DEFAULT("C")         && Switch to drive C

    IF FT_DEFAULT("E") != "E"
       Qout( "Drive E does not exist!" )
    ENDIF

 Source: DEFAULT.ASM

 Author: Ted Means