Path: news.mathworks.com!not-for-mail
From: "Nils Tobias " <nils.kraemer@uni-ulm.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: free disk space on network drive
Date: Tue, 21 Sep 2010 21:11:20 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <i7b71o$t2h$1@fred.mathworks.com>
References: <hvbg9o$200$1@fred.mathworks.com> <hvbgth$6u9$1@canopus.cc.umanitoba.ca> <hvbi1v$l55$1@fred.mathworks.com> <xSdSn.82479$HG1.20741@newsfe21.iad> <hve8p0$l21$1@fred.mathworks.com> <VCBSn.103241$_84.24555@newsfe18.iad> <i7a25s$i8v$1@fred.mathworks.com> <i7b51j$j0l$1@fred.mathworks.com>
Reply-To: "Nils Tobias " <nils.kraemer@uni-ulm.de>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1285103480 29777 172.30.248.35 (21 Sep 2010 21:11:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 21 Sep 2010 21:11:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2238259
Xref: news.mathworks.com comp.soft-sys.matlab:672034

"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message 
> perhaps this helps and does not depend on the platform:
>   FileObj = java.io.File('D:\');
>   FileObj.getFreeSpace
>   FileObj.getTotalSpace
>   FileObj.getUsableSpace

Thanks a lot Jan, this worked and is exactly what I needed!!!

And as I said I'm not about to write onto every little bit available I just want to check if there are 10 or so GB left so that my function that creates and afterward deletes some 1-3GB can work properly.

In my opinion it's better to have a rough idea how much is left than starting a function that aborts somewhere in the code because it ran out of memory.

In any case I know I should first consider if I really need this function and all the data it creates.

Cheerz
NTK