Siebel VB Language Reference > VB Language Reference >
SetAttr Statement
This standard VB statement sets the file attributes for a specified file. Syntax
SetAttr pathname, attributes
|
|
pathname |
A string or string expression evaluating to the name of the file to modify |
attributes |
An integer expression containing the new attributes for the file |
Returns
Not applicable Usage
Wildcards are not allowed in pathname. If the file is open, you can modify its attributes, but only if it is opened for Read access. Here is a description of attributes that can be modified:
|
|
0 |
Normal file |
1 |
Read-only file |
2 |
Hidden file |
4 |
System file |
32 |
Archive—file has changed since last backup |
Example
For an example, read Select Case Statement. Related Topics
FileAttr Function GetAttr Function
|