You can use the Scripting.FileSystemObject to get this information. 
<cfscript>
FSO = createObject( "COM", "Scripting.FileSystemObject" );
Drive = FSO.getDrive( FSO.getDriveName( "D" ) );
diskSpaceLeft = Drive.freeSpace() / 1024;
</cfscript>

There might be some errors there as I typed it in this email, but it will
get you going ;-)

-- 
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com


-----Original Message-----
From: Jim McAtee [mailto:[EMAIL PROTECTED] 
Sent: Friday, 18 March 2005 11:05 AM
To: CF-Talk
Subject: Get Disk Space from CF?

Does anyone know how I can retrieve the amount of disk space remaining in a
disk volume on the server on which CF is running?

CF5, IIS5, Windows 2000 Server Standard. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199276
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to