Created
February 20, 2019 15:23
-
-
Save oismaelash/c5406bde3a680499d150ae707ad6a9ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
namespace GetDriversLogics | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Begin Drivers logical:"); | |
string[] drives = Directory.GetLogicalDrives(); | |
foreach (string driver in drives) | |
{ | |
Console.WriteLine("Driver Name:: " + driver); | |
//Console.WriteLine("Driver VolumeLabel:: " + driverInfo.VolumeLabel); | |
Console.WriteLine("------"); | |
} | |
Console.WriteLine("End Drivers logical"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment