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

    Deletes a specified file.

        Entry   AH    = 41h
                DS:DX = Pointer to filespec (ASCIIZ string)

        Return  AX = Error code, if CF is set
                     | 02h File not found
                     | 03h Path not found
                     | 05h Access denied

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

    This function removes the directory entry for the file whose
    pathname is given in the zero-ended string pointed to by DS:DX.
    Wildcard characters cannot be used in the pathname specification.

    Note
    Deleting an open file may result in corruption of the file system.

    This function cannot be used to remove a directory, a volume
    label, or a read-only file. A program can use function 4301h to
    change the attributes of a read-only file so that the file can be
    deleted.

See Also: 3ah 3eh 4300h 4301h 59h

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