[futurebasic] Re: Hard disk free space?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: "nerimic@..." <nerimic@...>
Date: Wed, 2 Jan 2008 12:45:57 +0100

You can use the "df" unix command. Use the "man df" command in the 
Terminal application to look at the options.

dim u$

open "UNIX", 1, "df -h"
line input #1, u$
print u$
until eof(1)
close #1

>I would like to get the free space on a hard disk so I can have my
>program refuse to save a file if there is not enough space on the hard
>disk for it to fit. I have been using the function below but I just
>noticed that it reports only 2 gb free when there is actually 65 gb
>available. Does any one know how to find the actual free space?