Calculate Used Space in C drive

Hi guys,
We have to built-in method to capture free space in the drive using Driveinfo. However is there any such method to calculate the Used Space in the drive? Any inputs will be appreciated!

Thanks in advance.
Happy learning

Check this thread Check free space in c drive

@marian.platonov - that is using built in method to capture the Available free space. However we do not capture the Used Space in the Local disk.

Check out the documentation for DriveInfo,

You can get the Total size and subtract to total free space, it will leave you with the total used space.

@Jon_Smith yes i followed the same procedure. It works. Thank you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.