Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 3ah (58) remove directory (rmdir)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 3Ah (58)        Remove Directory (RMDIR)

    Remove the specified subdirectory.

       On entry:      AH         3Ah
                      DS:DX      Pointer to directory name to be removed
                                 (ASCIIZ string)

       Returns:       AX         Error code, if CF set

       Error Codes:   3          Path not found
                      5          Access denied (directory not empty)
                      16         Cannot delete current directory

                      Call Function 59h for extended error code information
                      (DOS 3.0 and above).

       Network:       Requires Create access rights.

  --------------------------------------------------------------------------

    Function 3Ah (RMDIR) removes the subdirectory whose path is specified
    in the ASCIIZ string at address DS:DX; the string length is limited to
    64 characters. If the function is unable to delete the directory, it
    sets the Carry Flag and returns an error code in AX.

See Also: 39h 3Bh 47h 59h

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