日期:2014-05-17 浏览次数:20951 次
string[] s = Directory.GetFiles(@"D:\陈金龙实训\实训\NetShop\images\staticshop\qqq");
string[] filename = new string[s.Length];
for (int i = 0; i < s.Length; i++)
{
filename[i] = Path.GetFileName(s[i]);
}
string path = "../images/staticshop/" + TextBox1.Text;
DirectoryInfo my = new DirectoryInfo(path);
if(!my.Exists)
Directory.CreateDirectory(Server.MapPath(path));