using System.IO;
string strPath = "what your physical path is"; //ie "C:\\Windows\\System32"
try
{
if (Directory.Exists(strPath))
{
lblDirectoryResult.Text += "That path " + strPath + " already exists.";
return;
}
DirectoryInfo di = Directory.CreateDirectory(strPath);
lblDirectoryResult.Text += "The directory " + strPath + " was created
successfully.";
}
catch (Exception ex)
{
lblDirectoryResult.Text = Convert.ToString(ex.Message);
}
Good luck!