Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos 2+ - delete a file (unlink) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - DELETE A FILE (UNLINK)
        AH = 41h
        DS:DX -> ASCIZ pathname of file to delete (no wildcards allowed)
Return: CF set on error
            AX = error code (02h,05h) (see AH=59h)
        CF clear if successful
            AX destroyed (DOS 3.3) AL seems to be drive of deleted file
Notes:  (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
          the filespec must be canonical (as returned by AH=60h)
        deleting a file which is currently open may lead to filesystem
          corruption.  Unless SHARE is loaded, DOS does not close the handles
          referencing the deleted file, thus allowing writes to a nonexistent
          file.
SeeAlso: AH=13h,AX=5D00h,AH=60h,INT 2F/AX=1113h

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