In a C# 2008 desktop application, I want to be able to check for a directory folder existing in a specified location. The directory path will look like C:\\main_folder\mm_yyyy. The mm_yyyy stands for the month and year.
Thus can you should be code on how to check if a folder actually exists?
Loading
VulpesPosted Jan 23, 2013, 10:41 AM
Hemant SrivastavaPosted Jan 23, 2013, 10:18 AM
if (!Directory.Exists(@"C:\main_folder\mm_yyyy"))
{
Directory.CreateDirectory(@"C:\main_folder\mm_yyyy");
}