void CreateDir()
{
string pathToCreate = "~/myDir1";
if (Directory.Exists(Server.MapPath(pathToCreate)))
{
//In here, start looping and modify the path to create to add a number
//until you get the value needed
}
//Now you know it is ok, create it
Directory.CreateDirectory(Server.MapPath(pathToCreate));
}