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
This is worth a try too:
http://www.cflib.org/udf.cfm?ID=787
Massimo Foti, web-programmer for hire
Tools for ColdFusion and Dreamweaver developers:
http://www.massimocorner.com
Johnny,
How is crashing? When you are crating the Zip? Opening the zip? I don't
know about the size, but it seems funny that it should crash anything.
..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
cfdirectory
filter it by *.zip and look for your particular zip file by doing a
query of queries
It has the size in the result set
On 7/9/07, Johnny Le [EMAIL PROTECTED] wrote:
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
Would the cfdirectory ... tag work for you? It returns the size as
well as other information about the files it returns in its record set.
~|
CF 8 â Scorpio beta now available,
easily build great internet experiences â Try
5 matches
Mail list logo