SetAttr

This method sets attribute data for a file.

Syntax

filesystem.SetAttr pathname, attributes

Parameters

filesystem
Reference to a FileSystem control.
pathname
Required. String expression that specifies a file name. The file name can include a path.
attributes
Required. Numeric expression whose sum specifies file attributes. The following table shows the parameter settings of attributes.
Constant
Value
Description
vbNormal 0 Normal (default)
vbReadOnly 1 Read-only
vbHidden 2 Hidden
VbSystem 4 System file
VbArchive 32 File has changed since last backup

Return Value

None.

Remarks

A run-time error occurs if you try to set the attributes of an open file.