Gets or sets the protection attributes of a specified file or directory.
Supported Platforms: AutoCAD for Windows only; not available in AutoCAD LT for Windows, or on Mac OS and Web
Library: acetutil.arx
Signature
(acet-file-attr filename [attr])
- filename
-
Type: String
Name of the file or directory.
- attr
-
Type: Integer
If provided, a combination of one or more attribute flags.
- 1 = Acet:READONLY
- 2 = Acet:HIDDEN
- 4 = Acet:SYSTEM
- 16 = Acet:DIRECTORY
- 32 = Acet:ARCHIVE
The following pre-defined constants are provided for this argument and as return values:
Return Values
Type: Integer
Returns the new or existing attributes, or -1 on error.