【文件属性】:
文件名称:C#实现Zip压缩目录中所有文件的方法
文件大小:31KB
文件格式:PDF
更新时间:2020-12-31 11:30:21
c# ip zip格式
本文实例讲述了C#实现Zip压缩目录中所有文件的方法。分享给大家供大家参考。具体实现方法如下:
using System;
using System.IO;
using System.Collections;
using System.IO.Compression;
using System.Collections.Generic;
class FolderZip
{
private const long BUFFER_SIZE = 20480;
static void main(string[] args)
{
string sourcepath=@C:\tmp;
Queue<File