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 47h get current directory (getdir)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 47h            Get Current Directory (GETDIR)

    Returns the full path of the current directory on the specified
    drive.

        Entry   AH    = 47h
                DL    = Drive number (0 = default, 1 = A, etc.)
                DS:SI = Pointer to a 64-byte buffer

        Return  Buffer filled
                AX changed
                or
                AX = Error code, if CF is set
                     | 0Fh Invalid drive

    ------------------------------------------------------------------

    This function returns the full pathname of the current directory,
    excluding the drive designator and initial backslash character, as
    an ASCIIZ string at the memory buffer pointed to by DS:SI.

    The pathname may be as long as 63 bytes (without the initial
    backslash), plus the terminating zero byte. If the current
    directory is the root, the function returns a null ASCIIZ string
    (that is, the first byte of the buffer will be zero).

See Also: 3bh 19h 59h

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