How much folder space is left?


I guess first you need to know how much folder space you are allowed to
have, and then how much you really have.
The Windows Scripting Host can do this for you with the File System Object


just taken some pieces out of my own code


server.objFSO = createObject("com", "Scripting.FileSystemObject");
folder = request.pathRoot;
objFolder = server.objFSO.GetFolder( folder );
application.info.byteSize = objFolder.Size;


hope it makes sense, if not, at least you know you can do it with the
FileSystemObject ;-))

Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Troy Montour [mailto:[EMAIL PROTECTED]
Sent: Friday, 23 January 2004 6:15 AM
To: CF-Talk
Subject: Checking HD/folder space

Hello,
working on a file management piece for our intranet I have everything done
but one piece to report how much hd/folder space is left.

anything out there that can do this for CF?

also if this is ran on a shared enviroment will it report what my space is
availible or the whole HD?

Thank you in advance
Troy Montour
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to