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