IF you want your application to create folders or directories dynamically at run time to save any kind of data or files, you can do so by using any of the following command/method.
System.IO.Directory.CreateDirectory(@"D:\hello")- System.IO.DirectoryInfo dinfo = new DirectoryInfo(@"D:\hello");
dinfo.Create();
If you want to check whether a directory with the name you specified already exists or not then you can try the following method
System.IO.DirectoryInfo dinfo = new DirectoryInfo(@"D:\hello");
if (!dinfo.Exists) //checks if the directory already exists or not
{
dinfo.Create();
}