Checking the last modification date of a file ??

Using CF, I need to check and display the system saved date for a txt file. I am able to check the existance of a file through FileExists command. Checking the file save date is a problem. any ideas?

Anusha

system setup
winnt4
CFserver
NES3.6
MsSQL server 6.5


anushaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dapperryConnect With a Mentor Commented:
Use CFDIRECTORY.  Heres an example:

<CFDIRECTORY DIRECTORY="d:\temps"
           NAME="DateTimeQuery"
           FILTER="test.txt">
<CFSET MyDateTime=DateTimeQuery.datelastmodified>
<CFOUTPUT>
      #MyDateTime#
</CFOUTPUT>

Obviously you can insert variables for the DIRECTORY and FILTER attributes.  Let me know if you have any questions.

:) dapperry
0
 
anushaAuthor Commented:
Thanks Dapperry :-)
0
All Courses

From novice to tech pro — start learning today.