Directory.GetFiles
using System; using System.IO; class MainClass { public static void Main() { string[] aFiles = Directory.GetFiles("c:\\"); foreach (string s in aFiles) Console.WriteLine(s); } }