Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Int 21h Function 43h
 Detail Example                          Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   43h
 
  Title:       Get or Set File Attributes
 
  See also:    Get or Set File Date and Time
 
  Description:
 
     Obtains or alters the attributes of a file (read-only, hidden,
     system, or archive).
 
     Input                                    Output
 
     AH = 43h                                 If function successful
     AL = 00h (if getting file attribute)       Carry flag: clear
        = 01h (if setting file attribute)       CX = File attribute
     CX = New file attribute if AL = 01h
          (bits can be combined)              If function unsuccessful
          Bit 5 = Archive                       Carry flag: set
          Bit 2 = System                        AX = Error code (01h, 02h,
          Bit 1 = Hidden                             03h, or 05h)
          Bit 0 = Read-only                     See: Error codes
     DS:DX = segment:offset of ASCIIZ
             path name
                                    -♦-