You can find the CFFiddle demo of this function and other file functions as part of a project that is shared with you.
Click the button below to launch CFFiddle.
To copy the project in your workspace in CFFiddle, follow the steps below:
Sets the date when an on-disk or in-memory 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 an on-disk or in-memory 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> |
Sign in to your account