CSharp examples for System.IO:DirectoryInfo
Get All Drives
using System.IO;/*from w w w. j a v a2 s.c o m*/ using System; public class Main{ public static DriveInfo[] GetAllDrives() { return DriveInfo.GetDrives(); } }