Skip to content

Instantly share code, notes, and snippets.

@oismaelash
Created February 20, 2019 15:23
Show Gist options
  • Save oismaelash/c5406bde3a680499d150ae707ad6a9ea to your computer and use it in GitHub Desktop.
Save oismaelash/c5406bde3a680499d150ae707ad6a9ea to your computer and use it in GitHub Desktop.
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