seems like alot of noddling...
When it comes to functions, check cflib.org first ;-)
http://www.cflib.org/udf.cfm?ID=757
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
Wrong link. This is the correct one.
http://www.cflib.org/udf.cfm?ID=317
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
cfset mb_format = 1273998 / 100 /
cfoutput#mbformat#/cfoutput
You could probably use one of the format functions to round it off to the
nearest 2 decimals.
Hope that helps Paul,
Robert
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]
Sent: 19 March 2008 15:37
To:
cfset kb = 1273998 / 1024
cfset mb = kb / 1024
cfoutput
br /#kb#Kb #(round(kb * 100)) / 100#Kb
br /#mb#Mb #(round(mb * 100)) / 100#Mb
/cfoutput
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2008 11:37 AM
To: CF-Talk
Subject: GetFileInfo MB or kb
#GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/
GetSectionsLit.lit_pdf).size/1024# will give you KB
#GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/
GetSectionsLit.lit_pdf).size/1024/1024# will give you MB
format it as you wish with numberformat()
Azadi Saryev
Sabai-dee.com
i found a function called byteconvert already in use in our code.
GetFileInfo is such a cool tag!
much better then storing it in a db having to check it, update it,
delete it...
~|
Adobe® ColdFusion® 8 software 8 is the most
Azadia Thats pretty cool tool..
On Wed, Mar 19, 2008 at 11:41 AM, Azadi Saryev [EMAIL PROTECTED] wrote:
#GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/
GetSectionsLit.lit_pdf).size/1024# will give you KB
#GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/
i found a function called byteconvert already in use in our code.
Sounds familiar ;-)
http://www.cflib.org/udf.cfm?ID=317
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
8 matches
Mail list logo