get disk free space
Published: 12. January 2009 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: File system, Windows » Hardware
Tags: C# File System Hardware Windows
Import namespace
using System.IO;
Code
DriveInfo drive = new DriveInfo(@"C:\"); long space = drive.AvailableFreeSpace;
| Send us feedback about this snippet » |





