qp.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.
File Attributes
  Dos Unit Contents Index                                   Back
 
  CONST
      ReadOnly  = $01;    { bit 0 }
      Hidden    = $02;    { bit 1 }
      SysFile   = $04;    { bit 2 }
      VolumeID  = $08;    { bit 3 }
      Directory = $10;    { bit 4 }
      Archive   = $20;    { bit 5 }
      AnyFile   = $3F;    { mask for all files, sum of all
                                attributes }
 
  Unit:     Dos
 
  Context:  FindFirst, GetFAttr, SetFAttr
 
  Description
 
    The constants for file attributes represent bit values in the
    attribute byte in the DOS directory. Use the constants as bit
    masks to specify DOS file attributes.
 
    Pass one or more constants to the procedures FindFirst and
    SetFAttr. Compare the attributes returned by GetFAttr with one
    or more constants. Combine the constants by using the bit-wise
    operators AND and OR, or the plus (+) operator.