how to create a new folder with csharp

Code Example - how to create a new folder with csharp

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