ph_setfileattrib PowerHome formula function
Description
Sets the attributes of the specified file.
Syntax
ph_setfileattrib ( s, n )
Argument |
Description |
s
|
A string representing the full path and filename whose attributes you wish to change.
|
n
|
An integer representing the attributes to assign to the file. Add the individual attributes listed below.
|
Return value
Integer. Returns a 0 if successful, 1 if the function fails.
Usage
Use this function to set the attributes of a file. You assign the attributes by adding together the attributes that you wish the file to have and using this summed value for n. The individual attribute values are: Archive = 32, Hidden = 2, Normal = 128, Readonly = 1, and System = 4. For example, if you wanted to make a file hidden and readonly, use a value of 3.