Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>function 41h (65) delete file (unlink)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 41h (65)        Delete File (UNLINK)

    Delete the named file.

       On entry:      AH         41h
                      DS:DX      Pointer to filespec (ASCIIZ string)

       Returns:       AX         Error code, if CF is set

       Error codes:   2          File not found
                      3          Path not found
                      5          Access denied

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

       Network:       Requires Create access rights

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

    This function removes the directory entry for the file whose pathname
    is given in the ASCIIZ string pointed to by DS:DX. Wildcard characters
    may not be used in the pathname specification. (Note that the
    corresponding FCB function, Function 13h, does permit wildcard
    characters.)

       Notes:         To delete a read-only file, first remove the read-
                      only attribute with Function 43h.

See Also: 13h 43h 59h

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