<CFFILE ACTION="Write"
FILE="file_name"
OUTPUT="content"
MODE="permission"
ATTRIBUTES="file_attributes">
FILE
Required. The name of the file to be created (with directory location).
OUTPUT
Required. The content of the file to be created.
MODE
Optional. Defines permissions for a file in Solaris. Ignored in Windows. Valid entries correspond to the octal values (not symbolic) of the Unix chmod command. Permissions are assigned for owner, group, and other, respectively. For example:
MODE=644
Assigns the owner read/write permissions and group/other read permission.
MODE=666
Assigns read/write permissions for owner, group, and other.
MODE=777
Assigns read, write, and execute permissions for all.
ATTRIBUTES
Optional. A comma-delimited list of file attributes to be set on the file being written. The following file attributes are supported:
- ReadOnly
- Temporary
- Archive
- Hidden
- System
- Normal
If ATTRIBUTES is not used, the file's attributes are maintained. If Normal is specified as well as any other attributes, Normal is overridden by whatever other attribute is specified.
Individual attributes must be specified explicitly. For example, if you specify just the ReadOnly attribute, all other existing attributes are overwritten.
|