资源简介

压缩文件为7z格式

资源截图

代码片段和文件信息

/***********************************************************************
* 文 件 名:GZipHelper.cs
* CopyRight(C) 2016-2020 中国XX工程技术有限公司
* 文件编号:201603230002
* 创 建 人:张华斌
* 创建日期:2016-03-23
* 修 改 人:
* 修改日期:
* 描    述:GZip文件操作类
***********************************************************************/
using System;
using System.IO;
using System.IO.Compression;

namespace ProgressBarSolution
{
    /// 
    /// GZip文件操作类;
    /// 

    public class GZipHelper
    {
        /// 
        /// 压缩文件;
        /// 

        /// 输入文件
        /// 进度条显示函数
        public static void Compress(string inputFileName Func dispalyProgress = null)
        {
            usin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-04 17:32  .vs\
     目录           0  2018-08-04 17:47  .vs\ProgressBarSolution\
     目录           0  2018-08-04 17:47  .vs\ProgressBarSolution\DesignTimeBuild\
     文件         230  2018-08-04 17:47  .vs\ProgressBarSolution\DesignTimeBuild\.dtbcache
     目录           0  2018-08-04 17:44  .vs\ProgressBarSolution\v15\
     文件       44032  2018-08-04 17:47  .vs\ProgressBarSolution\v15\.suo
     目录           0  2018-08-04 17:32  .vs\ProgressBarSolution\v15\Server\
     目录           0  2018-08-04 17:32  .vs\ProgressBarSolution\v15\Server\sqlite3\
     文件           0  2018-08-04 17:32  .vs\ProgressBarSolution\v15\Server\sqlite3\db.lock
     文件        4096  2018-08-04 17:32  .vs\ProgressBarSolution\v15\Server\sqlite3\storage.ide
     文件       32768  2018-08-04 17:32  .vs\ProgressBarSolution\v15\Server\sqlite3\storage.ide-shm
     文件     1079472  2018-08-04 17:45  .vs\ProgressBarSolution\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-08-04 17:45  ProgressBarSolution\
     文件         189  2016-03-22 14:32  ProgressBarSolution\App.config
     文件        3334  2016-03-23 14:39  ProgressBarSolution\GZipHelper.cs
     文件        1929  2018-08-04 17:44  ProgressBarSolution\Program.cs
     文件        4871  2016-03-23 14:38  ProgressBarSolution\ProgressBar.cs
     文件        2900  2018-08-04 17:45  ProgressBarSolution\ProgressBarSolution.csproj
     目录           0  2016-03-23 14:38  ProgressBarSolution\Properties\
     文件        1407  2016-03-23 14:38  ProgressBarSolution\Properties\AssemblyInfo.cs
     目录           0  2018-08-04 17:45  ProgressBarSolution\bin\
     目录           0  2018-08-04 17:46  ProgressBarSolution\bin\Debug\
     文件        9728  2018-08-04 17:45  ProgressBarSolution\bin\Debug\ProgressBarSolution.exe
     文件         189  2016-03-22 14:32  ProgressBarSolution\bin\Debug\ProgressBarSolution.exe.config
     文件       19968  2018-08-04 17:45  ProgressBarSolution\bin\Debug\ProgressBarSolution.pdb
     文件       22696  2016-03-23 14:42  ProgressBarSolution\bin\Debug\ProgressBarSolution.vshost.exe
     文件         189  2016-03-22 14:32  ProgressBarSolution\bin\Debug\ProgressBarSolution.vshost.exe.config
     文件         490  2010-03-17 22:39  ProgressBarSolution\bin\Debug\ProgressBarSolution.vshost.exe.manifest
     目录           0  2018-08-04 17:46  ProgressBarSolution\bin\Debug\files\
     文件     1350290  2018-08-04 17:46  ProgressBarSolution\bin\Debug\files\book.7z
     文件     1796999  2018-08-04 17:46  ProgressBarSolution\bin\Debug\files\book.pdf
............此处省略24个文件信息

评论

共有 条评论