Sets the date when the file was most recently modified.
FileSetLastModified(filepath,date)
FileCopy, FileDelete, FileExists, FileMove, FileSetAccessMode, FileSetAttribute
ColdFusion 8: Added this function.
|
Parameter |
Description |
|---|---|
| filepath |
An absolute path to a file on the server. |
| date |
A valid ColdFusiondate or datetime. |
<cfscript>
FileSetLastModified("c:\temp\test1.txt", "#Now()#");
WriteOutput(#GetFileInfo("c:\temp\test1.txt").lastmodified#);
</cfscript>