[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson