Get All Drives - CSharp System.IO

CSharp examples for System.IO:DirectoryInfo

Description

Get All Drives

Demo Code


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();
        }
}

Related Tutorials