Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement