protected void Button1_Click(object sender, EventArgs e)
{
string[] FileProperties = new string[2];
FileProperties[0] = "D:\unzipped\";//待压缩文件目录
FileProperties[1] = "D:\zip\a.zip"; //压缩后的目标文件
ZipFloClass Zc = new ZipFloClass();
Zc.ZipFile(FileProperties[0], FileProperties[1]);
}
protected void Button2_Click(object sender, EventArgs e)
{
string[] FileProperties = new string[2];
FileProperties[0] = "D:\zip\b.zip";//待解压的文件
FileProperties[1] = "D:\unzipped\";//解压后放置的目标目录
UnZipFloClass UnZc = new UnZipFloClass();
UnZc.unZipFile(FileProperties[0], FileProperties[1]);
}
希望本文所述对大家的asp.net程序设计有所帮助。
您可能感兴趣的文章: