<pre> string path = Server.MapPath("~/Samples/"); string[] filenames = Directory.GetFiles(path); using (ZipFile zip = new ZipFile()) { //Byte [] filename1= zip.AddFiles(list, "files"); zip.Save(Server.MapPath("~/samplefiles1.zip")); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Message", "alert('Zip File Created')", true); }
ZipFile
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)