zip压缩,解压
//引用 System.IO.Compression.FileSystem.dll var basePath = AppDomain.CurrentDomain.BaseDirectory; System.IO.Compression.ZipFile.CreateFromDirectory(basePath + @"\test", basePath+@"\test2.zip"); //压缩 System.IO.Compression.ZipFile.ExtractToDirectory(basePath + @"\test2.zip", basePath + @"\test2"); //解压

浙公网安备 33010602011771号