Archive of:
CF-Server
Cold Fusion Server Tech
home
24 hour view
quick stats
weekly updates
all tallylists
corporate solutions
archive your favorite
help / feedback
About Cold Fusion :
product's home
product's list home
|
|
Archived TallyList / CF-Server:
Subject: Re: [CFDIRECTORY.SIZE]
s@njeevi (9p/+0r) Posted: Monday 19 Mar 2001 This post: 41 views, +0 rating
hi the size there is the size of a file in the directory c:\inetpub\wwwrootso U need to run a loop . this "SpaceAvail" that U have is like a recordset so U <cfoutput query ="SpaceAvail"> and then iside this have count = count + SpaceAvail.size </cfoutput> and the outside the cfoutput access the value of count and indicates the size of the folder U specified.
hope it helps bye rever if any questions/clarifications
"Bryan LaPlante" <blaplante@netwebapps.com> wrote: > Hey gang, > Is there any way to get cfdirectory to return the size of a direcotry. I > have tried it in a recursive loop as well as the code below. It always > returns 0. Any idea's? > > > <CFDIRECTORY ACTION="LIST" > DIRECTORY="c:\inetpub\wwwroot" > NAME="SpaceAvail"> > > <CFSET diskSpace = spaceAvail.size> > > Bryan LaPlante > 816-347-8220 > blaplante@netwebapps.com > http://www.netwebapps.com > Web Development > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm ------------------------------------------------------------------------------ To unsubscribe, send a message to cf-server-request@houseoffusion.com with 'unsubscribe' in the body or visit the list page at www.houseoffusion.com
Similar Subject Line Posts (+/- two weeks of this post)
| Send a reply to the CF-Server list! |
 |
NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!) |
|