With this function block of the ⇘ CAA_File.library directory and file attributes can be modified. It is optional for the different targets. Whether this function block is implemented or not is explicitly stated and encoded in the return value of the function ”FILE.GetProperty”(see description of ⇘ FILE.GetProperty).
Input:
xExecute |
BOOL |
see: ⇘ “CAA 指南” |
hFile |
CAA.HANDLE |
Handle of the directory or the file |
eFileAttrib |
FILE.ATTRIB |
File attributes to be set: FILE.ATTRIB_ARCHIVE - Archive attribute for storage purposes FILE.ATTRIB_HIDDEN - Attribute for hidden files FILE.ATTRIB_NORMAL - Attribute, if no other attribute is set FILE.ATTRIB_READONLY - Write protection attribute; the file cannot be opened in FILE.WRITE_MODE or FILE.RDWR_MODE mode; an error message will be created |