Create directory or folder using ASP.NET (C#)

Rajni.Shekhar
Posted by Rajni.Shekhar under ASP.NET category on | Points: 40 | Views : 1504
using System.IO;
protected void Page_Load(object sender, EventArgs e)
{
DirectoryInfo di = Directory.CreateDirectory(@"D:\MyDir");
Response.Write("The directory was created successfully.");
}

Comments or Responses

Login to post response