您的位置:首页 > 其它

删除文件夹、创建文件夹、删除文件 等操作

2012-09-03 16:31 281 查看
using System.IO;

System.IO.DirectoryInfo dirinfo = System.IO.Directory.CreateDirectory(Server.MapPath("/go/1111"));  //创建文件夹

Directory.Delete(Server.MapPath("/go/1111"), true);   //删除1111文件夹

System.IO.File.Delete(Server.MapPath("/Image/Case/1111.jpg"));   //删除1111.jpg文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐