[Mono-dev] disk size
mirek
mirek at cnl.tuke.sk
Thu Dec 8 09:30:41 EST 2005
hello
i tryed the solution about the gaining the ammount of disk size with
using the Mono.Unix.UnixDriveInfo as jonathan wrote:
Mono.Unix.UnixDriveInfo info = new UnixDriveInfo ("/");
Console.WriteLine (" Disk Size: " + info.TotalSize);
Console.WriteLine ("Free Space: " + info.AvailableFreeSpace);
the compilation was succesful, but when i try to run it, the result is this exception:
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: mountPoint
in <0x0007f> Mono.Unix.UnixDriveInfo:.ctor (System.String mountPoint)
whats wrong? something missing?
thanks
mirek
--
e-mail: mirek at host.sk
icq: 113397932
jabber: mirek_b at jabber.sk
homepage: http://www.intrak.sk/~binas
english:
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
slovak:
prosim, neposielajte mi prilohy vo formatoch .doc a .ppt (power point)
precitajte si http://www.fsf.org/philosophy/no-word-attachments.cs.html
More information about the Mono-devel-list
mailing list