发布网友 发布时间:2022-04-23 03:09
共1个回答
热心网友 时间:2023-06-26 18:19
string startPath = @"c:\example\start";string zipPath = @"c:\example\result.zip";string extractPath = @"c:\example\extract";ZipFile.CreateFromDirectory(startPath, zipPath);ZipFile.ExtractToDirectory(zipPath, extractPath);