Advertisement
Gillito

Untitled

Jun 19th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7.  
  8. namespace ConsoleApplication51
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string[] files = Directory.GetFiles("e:\\Music", "*.mp3", SearchOption.AllDirectories);
  15.             foreach (string item in files)
  16.             {
  17.                 Console.WriteLine(Path.GetFileNameWithoutExtension(item));
  18.                 FileInfo len = new FileInfo(item);
  19.                 Console.WriteLine(item.Length);
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement