I'm using a script that Uses COM and requires CFOBJECT be enabled in the CF 
Administrator in CF version 5. I've looked throughout the admin and can't find 
where to enable cfobject. It's the script in a previous post found at: 
http://cflib.org/udf.cfm?ID=105
Any ideas? Or is there something else that's missing here?
I'm using the script that returns the amount of free space (in bytes) available 
to the ColdFusion server for a specified drive or network sharein CFLIB.org. 
See below:
Robert O.
HWW

<cfscript>
function FreeSpace(drvPath)
{
  Var fso  = CreateObject("COM", "Scripting.FileSystemObject");
  Var drive = fso.GetDrive(c);
  Return drive.FreeSpace;
}
</cfscript>
<CFOUTPUT>Free space available on C: #FreeSpace("c:")# bytes</CFOUTPUT> 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199331
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to