Compress Zip File from directory - CSharp System.IO.Compression

CSharp examples for System.IO.Compression:Zip

Description

Compress Zip File from directory

Demo Code


using System.IO.Compression;
using System.IO;//from ww w  .  ja v  a  2 s .c om
using System.Diagnostics;
using System;

public class Main{

        public static void CompressZipFile(string compressDir,string zipFilePath) {
            ZipFile.CreateFromDirectory(compressDir, zipFilePath);
        }
}

Related Tutorials