GetAttr()

Syntax

GetAttr(Filename$)

Remarks

Returns a number corresponding to the file attributes set for Filename$, the path and filename of the file on which you want information. In Windows, the attributes correspond to those you can set using the Properties command (File menu) in File Manager (Windows 3.x and Windows NT) or Windows Explorer (Windows 95). For definitions of the attributes, display the Properties dialog box and choose the Help button. On the Macintosh, only the Read Only and Hidden attributes are available (Read Only corresponds to the Locked check box in the Get Info dialog box (File menu) in the Finder). The values returned by GetAttr() are additive. For example, if both Read Only and Archive are selected, the return value is 33 (the sum of 1 and 32).

Value

Explanation

0 (zero)

None of the file attributes are selected.

1

The Read Only attribute is selected.

2

The Hidden attribute is selected.

4

The System attribute is selected (not availble on the Macintosh).

32

The Archive attribute is selected (not available on the Macintosh).


For an example, see SetAttr.

See Also

SetAttr