How to create a directory on server

Posted by Neeks under ASP.NET category on | Views : 5228
You can get the path of server's root directory using

Now assign this path to string variable
string pathToSave = Request.PhysicalApplicationPath;

Now create a directory on the server
Append the Folder name to the string variable
pathToSave  +=  "folderName" 


Now your directory is created.

Comments or Responses

Login to post response