Description
Sets the attributes of an on-disk file in Windows. This function does not work with in-memory files.
Category
Function syntax
FileSetAttribute(filepath, attribute) |
See also
FileCopy, FileDelete, FileExists, FileMove
History
ColdFusion 8: Added this function.
Parameters
Parameter |
Description |
---|---|
filepath |
An absolute path to a file on the server. |
attribute |
One of the following:
|
Example
The following example sets the access mode of a file to be read-only.
<h3>FileSetAttribute Example</h3>
|