Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Functions 11h and 12h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Functions:  11h and 12h
 
  Title:       Find First or Next File
 
  See also:    Find First File (handle)
 
  Description:
 
     Searches the current directory on the designated drive for a
     matching filename.
 
     Input                          Output
 
     AH = 11h for first file        If function successful (matching file
        = 12h for next files        name found)
     DS:DX = segment:offset of        AL = 00h
             file control block       Buffer at current disk transfer
                                      area (DTA) address filled in as an
                                      unopened normal FCB or extended FCB,
                                      depending on type of FCB input to
                                      Function 11h
 
                                    If function unsuccessful (no matching
                                    filename found)
                                      AL = FFh
                                    -♦-