Sets the attributes of a file in Windows.
FileSetAttribute(filepath,attribute)
FileCopy, FileDelete, FileExists, FileMove
ColdFusion 8: Added this function.
|
Parameter |
Description |
|---|---|
| filepath |
An absolute path to a file on the server. |
| attribute |
One of the following:
Set the attribute to normal to make a file not read-only and not hidden. |
The following example sets the access mode of a file to be read-only.
<h3>FileSetAttribute Example</h3>
<cfscript>
FileSetAttribute("c:\temp\test1.txt", "readOnly");
</cfscript>