You could try using COM <cfset fso = createobject("COM", "Scripting.FileSystemObject") /> <cfset theFile = fso.GetFile("D:\path\to\my.zip") />
<cfoutput>#theFile.Size#</cfoutput> Dump #fso# and #theFile# for more goodies. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Johnny Le [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 6:00 PM To: CF-Talk Subject: Best way to read a zip file? Hi, What is the best way to find out the size (in bytes) of a zip file? I use cffile to read it and then use the len() method but this is so insufficient. When the zip file is reaching 100 MB, it crashes my server. java.util.zip.ZipFile has a size() method, but it says it returns the number of entries in the zip file instead of size in bytes. So I don't know what to do. Help, please! Thanks. Johnny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283389 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4