压缩指定路径MyZipDir下的文件夹b及b目录下的所有文件和文件b.txt function ZipDir(zipMode:Integer;zipControl:TVCLZip;MyZipName,MyZipDir:string):Boolean; begin {压缩指定目录中的文件和文件夹,指定RootDir,否则连同指定目录本身一同压缩} Result:=False; try with zipControl do begin case zipMode of :RootDir:=''; //…
dotNet疯狂之路No.29 今天很残酷,明天更残酷,后天很美好,但是绝大部分人是死在明天晚上,只有那些真正的英雄才能见到后天的太阳. We're here to put a dent in the universe. Otherwise why else even be here? C#压缩文件夹坑~ 开始从网上找了个压缩的示例 我去坑的不要不要的 没办法重新找 都是复制来复制去 没啥意思 前提:ICSharpCode.SharpZipLib.dll引用 创建一个类 public…
using System; using System.Data; using System.Configuration; using System.Collections.Generic; using System.IO; using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.Checksums; namespace BLL { /// <summary> /// 文件(夹)压缩.解压缩 /// </summar…