//check directory exist string directoryExistPath = @"C:UsersYogeshkumar HadiyaDesktopDirectoryHandling"; if (Directory.Exists(directoryExistPath)) { Console.WriteLine("Directory exist"); } else { Console.WriteLine("Directory not exist"); }