Re: GetFileInfo MB or kb - bytes formating?
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 http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301575 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: GetFileInfo MB or kb - bytes formating?
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 http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301576 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: GetFileInfo MB or kb - bytes formating?
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: CF-Talk Subject: GetFileInfo MB or kb - bytes formating? #GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/#GetSectionsLit.lit_pdf#).s ize# this out puts bytes with no formating. 1273998 how would i get it to be 1.27 MB and say it was 273998 for it to show 27.3 kb would i do an if statement to LEN 7 and surround it with number format. seems like alot of noddling... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301577 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: GetFileInfo MB or kb - bytes formating?
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 - bytes formating? #GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/#GetSectionsLit.lit_pdf#).s ize# this out puts bytes with no formating. 1273998 how would i get it to be 1.27 MB and say it was 273998 for it to show 27.3 kb would i do an if statement to LEN 7 and surround it with number format. seems like alot of noddling... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301578 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: GetFileInfo MB or kb - bytes formating?
#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 http://www.sabai-dee.com/ Paul Ihrig wrote: #GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/#GetSectionsLit.lit_pdf#).size# this out puts bytes with no formating. 1273998 how would i get it to be 1.27 MB and say it was 273998 for it to show 27.3 kb would i do an if statement to LEN 7 and surround it with number format. seems like alot of noddling... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301582 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: GetFileInfo MB or kb - bytes formating?
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 important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301590 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: GetFileInfo MB or kb - bytes formating?
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/ GetSectionsLit.lit_pdf).size/1024/1024# will give you MB format it as you wish with numberformat() Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Paul Ihrig wrote: #GetFileInfo(C:/Inetpub/wwwroot/literature/pdf/#GetSectionsLit.lit_pdf#).size# this out puts bytes with no formating. 1273998 how would i get it to be 1.27 MB and say it was 273998 for it to show 27.3 kb would i do an if statement to LEN 7 and surround it with number format. seems like alot of noddling... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301591 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: GetFileInfo MB or kb - bytes formating?
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 http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301592 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4