> I dislike .Net but it certainly was simple there. It took 3 lines:
>
> db = Session("DBpath") & "myDB.mdb"
> Dim myFile as FileInfo = New FileInfo(db)
> Dim ModDate as Date = myFile.LastWriteTime
>
That makes it look like the path was really just in a Session var in .NET; is
that the case? If so, then just do the same in CF:
<!--- this could be set in Application.cfc or wherever --->
<cfset session.DBpath = "path to the directory" />
...
<cfset db = "myDB.mdb" /> <!--- note there's no path info here --->
<cfdirectory action="LIST" directory="#session.DBpath#" filter="#db#"
name="myFile" />
<cfset ModDate = myFile.dateLastModified />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334805
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm