Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 21h Function 47h
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   47h
 
  Title:       Get Current Directory
 
  See also:    Set Current Directory, Create Directory,
               Delete Directory, @GetDir
 
  Description:
 
     Obtains an ASCIIZ string that describes the path from the root to
     the current directory, and the name of that directory.
 
     Input                             Output
 
     AH = 47h                          If function successful
     DL = Drive code (0 = default,       Carry flag: clear
          1 = A,...)                   And buffer is filled in with
     DS:SI = segment:offset of         full path name from root of
             64-byte buffer            current directory
 
                                       If function unsuccessful
                                         Carry flag: set
                                         AX = Error code (0Fh)
                                         See: Error codes
                                    -♦-