CHECKING DISK SPACE

  • Thread starter Thread starter MARCEL SAUCIER
  • Start date Start date
M

MARCEL SAUCIER

Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.
 
Hello,

I want to check & display the hard disk total & used space (i.e. drive C).

Using My.Computer (if possible). I have searched the documentation with no
luck.

Marcel,
My.Computer does provide such informations well.

' For retrieving total size of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalSize

' For retrieving total free space of drive C:
My.Computer.FileSystem.GetDriveInfo("c:").TotalFreeSpace

Hope this helps,

Onur Güzel
 
THANK YOU VERY MUCH, IT'S SEEMS THAT I NEED TO IMPROVE MY WAY OF SEARCHING
FOR DOCUMENTATION.
 
Back
Top