daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.IO;
  3.  
  4. namespace GetDriversLogics
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             Console.WriteLine("Begin Drivers logical:");
  11.  
  12.             string[] drives = Directory.GetLogicalDrives();
  13.  
  14.             foreach (string driver in drives)
  15.             {
  16.  
  17.                 Console.WriteLine("Driver Name:: " + driver);
  18.                 //Console.WriteLine("Driver VolumeLabel:: " + driverInfo.VolumeLabel);
  19.                 Console.WriteLine("------");
  20.  
  21.             }
  22.  
  23.             Console.WriteLine("End Drivers logical");
  24.         }
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top