Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Function 47H (decimal 71) reports the current directory in the form of an
  ASCIIZ string. Call function 47H with a drive number in DL (00H = default
  drive, 01H = drive A, and so on) and the address of a 64-byte buffer in
  DS:SI. The function normally clears the carry flag and fills the buffer
  with an ASCIIZ string indicating the path from the root to the current
  directory. If you specify an invalid drive number, the function sets the
  carry flag and returns an error code of 0FH in AX.

  Because the path returned by this function starts at the root directory,
  the string at DS:SI includes neither the drive letter (as in A:) nor the
  start-from-the-root backslash (as in A:\). By these rules, if the current
  directory is the root directory, then this function returns a null string.
  If you want an intelligible display of the current directory, you can
  prefix the information returned by this function with the drive-and-root
  indicators (as in A:\).

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