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 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
                                    -♦-