Does anyone know how to get the amount of free physical disk space
(on a windows XP machine...) via the matlab command line?
I've found and experimented with dumpmemmex command and so on, but
really just want the total free disk space rather than that available
in virtual memory.
thanks in advance.
One possibility is to execute
[c,d]=dos('dir');
and parse the last line of d. Maybe somebody comes up with a better idea.
-Herbert
[c,d] = dos('dir');
[c,e] = size(d);
f = strrep(d((e-27):(e-11)),',','');
Gb_free = str2num(f)/(1024*1024*1024);
clear c d e f
its not the prettiest piece of code, but it works :-).
Adapted in matlab, this works only on xp, the drive must be NTFS-drive
[status output]=dos('fsutil volume diskfree g:')
BR
Anders
"Herbert Ramoser" <herbert_D...@gmx.net> skrev i meddelandet
news:2g8nb0F...@uni-berlin.de...