Here's two methods, one with pure CFML, and one using Java. <cfset filename = "/my/path/to/file.txt" />
<cfdirectory action="list" directory="#getDirectoryFromPath(filename)#" filter="#getFileFromPath(filename)#" name="fileinfo" /> <cfoutput>#fileinfo.size#</cfoutput> <cfoutput>#createObject("java", "java.io.File").init(filename).length()#</cfoutput> cheers, barneyb On Thu, 4 Nov 2004 14:23:46 +1030, Parker, Kevin <[EMAIL PROTECTED]> wrote: > Is it possible to determine the size of a file in CFML? > > TIA!! > > ++++++++++ > Kevin Parker > Web Services Manager > WorkCover Corporation > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/blog/ I currently have 0 GMail invites for the taking ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the mailserver that powers this list at http://www.houseoffusion.com/banners/view.cfm?bannerid=17 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183330 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54