我使用的是aspx页面的C#代码。我需要转换成单一的压缩文件中的多个文件,可以由windows默认的压缩软件读取。
谁能知道这件事……?
发布于 2011-03-07 15:41:14
使用免费的库,比如
http://www.sharpdevelop.net/OpenSource/SharpZipLib/
发布于 2011-03-07 15:40:57
请参阅本教程:Creating Zip archives in .NET (without an external library like SharpZipLib)
ZipFile zip= new ZipFile("MyNewZip.zip");
zip.AddDirectory("My Pictures", true); // AddDirectory recurses subdirectories
zip.Save();
或者,您可以使用SharpZipLib。
发布于 2011-03-07 15:45:45
DotNetZip是一个很好的开源软件,没有任何许可问题。
https://stackoverflow.com/questions/5217068
复制相似问题