我怎么能拉我的图片文件夹 [英] how can i zip my pictures folder
本文介绍了我怎么能拉我的图片文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何压缩我的图片文件夹
how can i zip my pictures folder
推荐答案
您好,您可以简化您的生活并使用名为 DotNetZip
下载后,您的项目将被引用,请写下以下代码行: br />
Hi, you can simplify your life and use third-party librarry called DotNetZip
After you download it and your project will be referenced to it , write the following lines of code :
using (var zip = new Ionic.Zip.ZipFile())
{
zip.AddDirectory("DirectoryOnDisk", "rootInZipFile");
zip.Save("MyFile.zip");
}
这篇关于我怎么能拉我的图片文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文