using System;
using System.IO.Compression;
class Program
{
static void Main(string[] args)
{
string startPath = @".\start"; //要打包的文件夹
string zipPath = @".\result.zip"; //打包存放的路径和压缩包名称
string extractPath = @".\extract"; //解压缩路径
ZipFile.CreateFromDirectory(startPath, zipPath); //打包压缩命令
ZipFile.ExtractToDirectory(zipPath, extractPath); //解压缩命令
}
}