字體:小 中 大 |
|
|
|
| 2013/09/20 10:55:55瀏覽320|回應0|推薦0 | |
[.NET(C#) ]建立資料夾
CreateDirectory.aspx
CreateDirectory.aspx.cs
using System.IO;
protected void Button1_Click(object sender, EventArgs e)
{
string username = "Tom";
Directory.CreateDirectory(MapPath(".") + "\\test\\" + username );
}
若路徑式上一層的另一個資料夾
Directory.CreateDirectory(Server.MapPath("../") + "\\test\\" + username );
|
|
| ( 知識學習|語言 ) |











