.net1.1时代我们选SharpZipLib
.net2.0时代我们选System.IO.Compression名称空间下的东东
.net3.0时代我们选System.IO.Packaging名称空间下的东东。
今天发现CodePlex上有个好东西,另压缩如此之Easy。。。
.net2.0时代我们选System.IO.Compression名称空间下的东东
.net3.0时代我们选System.IO.Packaging名称空间下的东东。
今天发现CodePlex上有个好东西,另压缩如此之Easy。。。
ZipFile zip = new ZipFile(directooutputFileName);
zip.TrimVolumeFromFullyQualifiedPaths = true;
zip.TempFileFolder = Path.GetTempPath();
zip.Comment
= string.Format(“A zip archives。{0} {1}“, Environment.NewLine, DateTime.Now.ToString());
zip.AddDirectory(directory, string.Format(“MyFolder-{0}“, DateTime.Now.ToShortDateString()));
zip.Save();
zip.TrimVolumeFromFullyQualifiedPaths = true;
zip.TempFileFolder = Path.GetTempPath();
zip.Comment
= string.Format(“A zip archives。{0} {1}“, Environment.NewLine, DateTime.Now.ToString());
zip.AddDirectory(directory, string.Format(“MyFolder-{0}“, DateTime.Now.ToShortDateString()));
zip.Save();
那就是
DotNet Zip Library