◄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 -♦-