Pages

Creating Folder in root or parent of Web application using asp.net

1)Using namespace System.io 2) create folder in root directory specify location in Server.mappath(".") assign variable to string variable (or) Create a folder in parent directory .use Server.mappath("..") assign varaiable to string variable .
(In web application folder suppose there are 2 folder i.e folder 2 is nest inside folder1 .I
want create another nest folder3 in folder1 .Folder 1 is parent folder )
3) Call a CreateDirectory method from Directory class specfy the path pseduo code(c# code) string path =Server.mappath("..") //reterive parent directory path Directory .createDirectory(path +"/Emplyoee" +"NewFolder") // here Employee is folder3 newfolder is nested inside Employeee nest folder of parent folder(web application folder)