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 - delete file via fcb http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS - DELETE FILE via FCB
        AH = 13h
        DS:DX -> FCB (see AH=0Fh) with filename field filled with template for
                 deletion ('?' wildcard allowed, but not '*')
Return: AL = status
            00h file found
            FFh file not found
Note:   deletes everything in the current directory (including subdirectories)
          and sets the first byte of the name to 00h (entry never used)
          instead of E5h if called on an extended FCB with filename
          '???????????' and bits 0-4 of the attribute set (bits 1 and 2 for
          DOS 1).  This may have originally been an optimization to minimize
          directory searching after a mass deletion, but can corrupt the
          filesystem under DOS 2+ because subdirectories are removed without
          deleting the files they contain.
SeeAlso: AH=41h, INT 2F/AX=1113h

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