DOS Fn 4fH: Find Next Matching File
Compatibility: 2.0+
Expects: AH 4fH
DS:DX address of data from a previous Fn 4eH Find 1st File
──────────────────────────────────────────────────────────────────
Returns: AX error code if CF is set to CY (i.e., if no more matches)
DTA is filled with a FileInfoRec (if no error)
──────────────────────────────────────────────────────────────────
Info: Continues a file search begun by a previous call to fn 4eH (find
first file).
DS:DX points to a 43-byte buffer containing information returned by Fn
4eH (find first file) -- either the DTA or a buffer copied from
the DTA.
Use this after a call to Fn 4eH. The next filename matching the
selected wildcard filespec and file attribute will be copied into
the buffer at DS:DX, along with other information (see
FileInfoRec the layout of the return information and see Fn 4eH
for related details.
Notes: The DS:DX parameter is required for DOS 3.0+. It enables you to
use recursive searching techniques more easily (for instance to
search an entire directory tree).
See Also: Fn 43H (find first file)
Directory and File Functions
DOS Functions
-♦-