• 大小: 0.22M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 7zip  解压缩  ZIP  解压  压缩  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SevenZip;

namespace Demo7zApi
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        //压缩
        private void button1_Click(object sender EventArgs e)
        {
            try
            {
                SevenZipHelper.Zip(“testGzip.exe“ “test.zip“);
                label1.Text = “压缩成功“;
            }
            catch (Exception ex)
            {
                label1.Text = “压缩失败:“ + ex.Message;
            }
        }
        //解压
        private void button2_Click(object sender Event

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-03-03 17:52  Demo7zApi\
     文件        3427  2014-03-03 17:47  Demo7zApi\Demo7zApi.csproj
     文件        3271  2014-03-03 17:46  Demo7zApi\Form1.Designer.cs
     文件        1154  2014-03-03 17:52  Demo7zApi\Form1.cs
     文件        5814  2014-03-03 17:46  Demo7zApi\Form1.resx
     目录           0  2014-03-03 17:51  Demo7zApi\LZ\
     文件        1160  2012-05-19 03:10  Demo7zApi\LZ\CRC.cs
     文件        3762  2009-05-30 15:09  Demo7zApi\LZ\ICoder.cs
     文件         576  2006-01-30 19:36  Demo7zApi\LZ\IMatchFinder.cs
     文件        9637  2006-02-01 17:51  Demo7zApi\LZ\LzBinTree.cs
     文件        3911  2006-02-01 16:43  Demo7zApi\LZ\LzInWindow.cs
     文件        2214  2007-07-05 22:10  Demo7zApi\LZ\LzOutWindow.cs
     文件        2772  2006-02-03 17:00  Demo7zApi\LZ\Lzmabase.cs
     文件       12075  2007-07-05 22:10  Demo7zApi\LZ\LzmaDecoder.cs
     文件       45224  2009-04-21 17:02  Demo7zApi\LZ\LzmaEncoder.cs
     文件        4190  2005-12-08 15:58  Demo7zApi\LZ\RangeCoder.cs
     文件        3272  2005-02-13 19:40  Demo7zApi\LZ\RangeCoderBit.cs
     文件        3525  2004-12-10 21:34  Demo7zApi\LZ\RangeCoderBitTree.cs
     文件        3559  2014-03-03 17:51  Demo7zApi\LZ\SevenZipHelper.cs
     文件        1786  2014-03-03 17:35  Demo7zApi\Program.cs
     目录           0  2012-05-19 03:07  Demo7zApi\Properties\
     文件        1440  2012-05-19 03:07  Demo7zApi\Properties\AssemblyInfo.cs
     目录           0  2014-03-03 17:32  Demo7zApi\bin\
     目录           0  2014-03-03 18:03  Demo7zApi\bin\Debug\
     文件       46080  2014-03-03 18:03  Demo7zApi\bin\Debug\Demo7zApi.exe
     文件      140800  2014-03-03 18:03  Demo7zApi\bin\Debug\Demo7zApi.pdb
     文件       14848  2014-03-03 17:53  Demo7zApi\bin\Debug\Demo7zApi.vshost.exe
     文件       18219  2014-03-03 17:51  Demo7zApi\bin\Debug\test.7z
     文件       18219  2014-03-03 17:52  Demo7zApi\bin\Debug\test.zip
     文件       73728  2014-03-03 16:00  Demo7zApi\bin\Debug\testGzip.exe
     文件       73728  2014-03-03 17:51  Demo7zApi\bin\Debug\testGzip1.exe
............此处省略9个文件信息

评论

共有 条评论