using System.IO; string Path = "C:Somefolderpath"; if (Directory.Exists(Path)) { Console.WriteLine("Directory " + Path + " Exists"); }