HD Space using CF?

2007-03-23 Thread Adkins, Randy
Anyone know of a utility that I can use to determine how much FREE Hard
Drive space is available on a server?
Not a drive, but the server as a whole.
 
I know there is a script on CFLIB, that will obtain the free space on a
drive:
 
function AvailableSpace(drvPath)
{
  Var fso  = CreateObject(COM, Scripting.FileSystemObject);
  Var drive = fso.GetDrive(drvPath);
  Return drive.AvailableSpace;
}
 
But I need it for the entire box not just a drive or mapped drive.


~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273613
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: HD Space using CF?

2007-03-23 Thread Dean Lawrence
Couldn't you just run that script for each drive you have and add the totals?

On 3/23/07, Adkins, Randy [EMAIL PROTECTED] wrote:
 Anyone know of a utility that I can use to determine how much FREE Hard
 Drive space is available on a server?
 Not a drive, but the server as a whole.

 I know there is a script on CFLIB, that will obtain the free space on a
 drive:

 function AvailableSpace(drvPath)
 {
  Var fso  = CreateObject(COM, Scripting.FileSystemObject);
  Var drive = fso.GetDrive(drvPath);
  Return drive.AvailableSpace;
 }

 But I need it for the entire box not just a drive or mapped drive.


 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: HD Space using CF?

2007-03-23 Thread Robertson-Ravo, Neil (RX)
Why can't you just pass in the drive(s) to that function and add them up?

Any free space calculation is only going to accurate if you know how the
server is partitioned etc.



 
This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Adkins, Randy
To: CF-Talk
Sent: Fri Mar 23 20:36:45 2007
Subject: HD Space using CF?

Anyone know of a utility that I can use to determine how much FREE Hard
Drive space is available on a server?
Not a drive, but the server as a whole.
 
I know there is a script on CFLIB, that will obtain the free space on a
drive:
 
function AvailableSpace(drvPath)
{
  Var fso  = CreateObject(COM, Scripting.FileSystemObject);
  Var drive = fso.GetDrive(drvPath);
  Return drive.AvailableSpace;
}
 
But I need it for the entire box not just a drive or mapped drive.




~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273620
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4