qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21H Function 47H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Current Directory
 
  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,1=A,            Carry flag=clear
      etc.)                                and buffer is filled in with
  DS:SI=segment:offset of 64-               full pathname from root of
         byte buffer                        current directory
                                           If function unsuccessful
                                           Carry flag=set
                                           AX=error code
                                    -♦-