Try something like this (untested)

<cfexecute name="c:/windows/system32/cmd.exe" arguments="/c dir"
variable="dirlisting">

And then do a regex to grab the free space from that string... 


-----Original Message-----
From: Mike Klostermeyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 12:09 PM
To: CF-Talk
Subject: RE: Free Space on Drive.

I have used some stored procedures in SQL Server that gives drive free
space.  Of course, the server that you need the information from must have
SQL Server installed on it.

Mike

-----Original Message-----
From: J W [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 8:50 AM
To: CF-Talk
Subject: Free Space on Drive.


Pretty Sinple but I couldn't find an answer searching... SO..

Is there any Coldfusion way to grab the free space on a particular drive? I
know I can grab file sizes and such with cfdirectory and cffile, but really
couldn't find an answer for free space.


Thanks,
Jeff






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229202
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