Assembly Language Help (alang.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.
@GetDir Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @GetDir buffer [,[drive] [,segment]]
 
  Summary:   Returns the current directory of the specified drive
 
  Arguments: <buffer>      Offset of buffer to receive ASCIIZ
                           directory. Must be an offset address.
 
             <drive>       8-bit drive number (0 = current, 1 = A,
                           2 = B, ...; 0 if none given).
 
             <segment>     Segment of path; DS if none given.
 
  Returns:   If carry: set, error code in AX
 
  Modifies:  AX, SI, DL; DS if segment changes
 
  See also:  Int 21h Function 47h, @ChDir, @GetDrv
                                    -♦-