using System.IO.Compression; try{ ZipFile.CreateFromDirectory(Server.MapPath(TOZipPath), Server.MapPath(TOZipFilePath));}catch (Exception ex){} 文章来源: C#文件压缩 标签 文件压缩