>From CFLib.org (dont know which one as i use the CFStudio Control)


/**
* Returns the date/time a file was created. (Windows only)
*
* @param file   Absolute or relative path to the specified file.
* @return Returns a date/time object.
* @author Rob Brooks-Bilson ([EMAIL PROTECTED])
* @version 1.0, July 24, 2001
*/
function FileDateCreated(path)
{
  Var fso  = CreateObject("COM", "Scripting.FileSystemObject");
  Var theFile = fso.Getfile(path);
  Return theFile.DateCreated;
}

HTH



-----Original Message-----
From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 15:30
To: CF-Talk
Subject: RE: cfdirectory = slow

Is there a similar way to find out the date the file was created?

-Patti

> why not use java ?
>
> <CFOUTPUT>
>     #CreateObject("java",
> "java.io.File").init(FileNameAndPathHere).lastModified()#
> </CFOUTPUT>
>
> HTH
>

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to