string dir = @"C: est"; // If directory does not exist, create it if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); }