Siebel VB Language Reference > Methods Reference for Siebel VB > File Control Methods >
Get File Attributes Method
The Get File Attributes method returns the attributes of a file, directory, or a volume label. Format
GetAttr(pathname)
The following table describes the arguments that you can use with this method.
|
|
pathname |
A string or string expression that evaluates to the name of the file, directory, or volume label to query. It cannot include the following wildcards:
- * (asterisk)
- ? (question mark)
|
Returns
The following table describes the values that the Get File Attributes method returns.
|
|
0 |
Normal file. |
1 |
Read-only file. |
2 |
Hidden file. |
4 |
System file. |
8 |
Volume label. |
16 |
Directory. |
32 |
Archive. The file has changed since the last backup occurred. |
|
If it returns any other value, then the return value represents the sum of the return values of the attributes that are set. For example, a return value of 6 represents a hidden system file, where 6 is 2 + 4. |
Related Topics
Get File Mode Method Set File Attributes Method
|