From: "Nils Tobias " <>
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$>
References: <hvbg9o$200$> <hvbgth$6u9$> <hvbi1v$l55$> <xSdSn.82479$HG1.20741@newsfe21.iad> <hve8p0$l21$> <VCBSn.103241$_84.24555@newsfe18.iad> <i7a25s$i8v$> <i7b51j$j0l$>
Reply-To: "Nils Tobias " <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1285103480 29777 (21 Sep 2010 21:11:20 GMT)
NNTP-Posting-Date: Tue, 21 Sep 2010 21:11:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2238259
Xref: comp.soft-sys.matlab:672034

"Jan Simon" <> wrote in message 
> perhaps this helps and does not depend on the platform:
>   FileObj ='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.