Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace ConsoleApplication51
- {
- class Program
- {
- static void Main(string[] args)
- {
- DriveInfo[] allDrives = DriveInfo.GetDrives();
- int i=1;
- foreach (DriveInfo d in allDrives)
- Console.WriteLine("{0}) Drive {1}", i++, d.Name);
- int usrChoise = int.Parse(Console.ReadLine());
- if (usrChoise == 3)
- {
- string[] files = Directory.GetFiles("e:\\Music", "*.mp3", SearchOption.AllDirectories);
- foreach (string item in files)
- Console.WriteLine(item);
- }
- else Console.WriteLine("ну тогда пошел нахер");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement