Free size of different volume?

Richard Gaskin ambassador at fourthworld.com
Tue May 29 14:24:33 EDT 2007


Klaus Major wrote:
> Hi Richard,
> 
>> The diskSpace function returns the free space of the drive the app  
>> is running from.
> 
>  From the current volume!
> 
>> I have an installer that runs from a CD, and I need to get the  
>> avialable size of the destination volume.
>>
>> Any built-in way to do this, or am I stuck with hunting down shell  
>> calls?
> 
> ...
> set the folder to "any folder on or even target volume itself"
> put diskspace into its_free
> ...
> 
> works for me :-)

Which OS?

So far readers here have reported that it works well on Windows, but on 
OSX only returns the info for the drive the app is running from.

If you have a way to get this working on OS X I'd love to learn how.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list