Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement