Wednesday, April 27, 2016 | By: nika perales

Read available disk space

Does your program need to get the available disk space on your computer. Here's the .net code
Import namespace
using System.IO;

Code
using System.IO;
DriveInfo drive = new DriveInfo(@"C:\");
long space = drive.AvailableFreeSpace;

0 comments:

Post a Comment