首页 > 学院 > 开发设计 > 正文

c# 文件夾操作

2019-11-17 02:13:41
字体:
来源:转载
供稿:网友

c# 文件夾操作

Posted on 2015-07-29 16:11 qhy1277 阅读(...) 评论(...) 编辑 收藏

#region 圖片對應異動 string newFilePath = "~/FileUpLoad/Book/" + bookModel.BookNo; if (!Directory.Exists(Server.MapPath(filePath))) { System.IO.Directory.CreateDirectory(Server.MapPath(filePath)); } if (Directory.Exists(Server.MapPath(newFilePath))) { System.IO.Directory.Delete(Server.MapPath(filePath)); } //修改文件夹名称 System.IO.Directory.Move(Server.MapPath(filePath), Server.MapPath(newFilePath)); #endregion


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表