Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread C S
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

Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread C S
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

RE: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread Robert Rawlins
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:

RE: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread Dave Francis
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

Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread Azadi Saryev
#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

Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread Paul Ihrig
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

Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread Paul Ihrig
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/

Re: GetFileInfo MB or kb - bytes formating?

2008-03-19 Thread C S
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