FILEINFO STRUC
fiReserved db 21 dup (?) ;reserved
fiAttribute db ? ;attributes of file found
fiFileTime dw ? ;time of last write
fiFileDate dw ? ;date of last write
fiSize dd ? ;file size
fiFileName db 13 dup (?) ;filename and extension
FILEINFO ENDS
The FILEINFO structure contains information about a file or directory name, access attributes, date, and time.
fiReserved
Reserved; do not use.
fiAttribute
Specifies the access attributes of the file or directory. This field can contain some combination of the following values:
Value | Meaning |
ATTR_READONLY (01h) | Specifies a read-only file. |
ATTR_HIDDEN (02h) | Specifies a hidden file or directory. |
ATTR_SYSTEM (04h) | Specifies a system file or directory. |
ATTR_VOLUME (08h) | Specifies a volume label. The entry contains no other usable information (except for date and time of creation) and can occur only in the root directory. |
ATTR_DIRECTORY (10h) | Specifies a directory. |
ATTR_ARCHIVE (20h) | Specifies a file that is new or has been modified. |
All other values are reserved. (The two high-order bits are set to zero.)
If no attributes are set, the file is a normal file (ATTR_NORMAL).
fiFileTime
Specifies the time the file or directory was created or last updated. The field has the following form:
Bits | Meaning |
0–4 | Specifies two-second intervals. Can be a value in the range 0 through 29. |
5–10 | Specifies minutes. Can be a value in the range 0 through 59. |
11–15 | Specifies hours. Can be a value in the range 0 through 23. |
fiFileDate
Specifies the date the file or directory was created or last updated. The field has the following form:
Bits | Meaning |
0–4 | Specifies the day. Can be a value in the range 1 through 31. |
5–8 | Specifies the month. Can be a value in the range 1 through 12. |
9–15 | Specifies the year, relative to 1980. |
fiSize
Specifies the size of the file, in bytes.
fiFileName
Specifies the name and extension of the file or directory.
Interrupt 21h Function 4Eh Find First File
Interrupt 21h Function 4Fh Find Next File