• 大小: 0.15M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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 System.IO;
using ICSharpCode.SharpZipLib;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.Checksums;
namespace compressFile
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        /// 
        /// 递归压缩文件夹方法
        /// 

        /// 
        /// 压缩文件输出流对象
        /// 
        private bool ZipFileDictory(string FolderToZip ZipOutputStream ZOPStream string ParentFolderName)
        {
            bool res = true;
            string[] folders filenames;
            ZipEntry entry = null;
            FileStream fs = null;
            Crc32 crc = new Crc32(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         926  2009-02-10 13:29  sj\01\compressFile\compressFile.sln
     文件       15360  2009-02-10 13:38  sj\01\compressFile\compressFile.suo
     文件        3980  2009-02-10 13:36  sj\01\compressFile\compressFile\compressFile.csproj
     文件        7160  2009-02-10 13:37  sj\01\compressFile\compressFile\Form1.cs
     文件        5612  2009-02-10 13:32  sj\01\compressFile\compressFile\Form1.Designer.cs
     文件        6422  2009-02-10 13:32  sj\01\compressFile\compressFile\Form1.resx
     文件         493  2009-02-10 13:29  sj\01\compressFile\compressFile\Program.cs
     文件          71  2009-02-23 17:09  sj\01\compressFile\compressFile\程序使用说明.txt
     文件       12800  2009-02-10 13:37  sj\01\compressFile\compressFile\bin\Debug\compressFile.exe
     文件       26112  2009-02-10 13:37  sj\01\compressFile\compressFile\bin\Debug\compressFile.pdb
     文件       14328  2009-02-10 13:38  sj\01\compressFile\compressFile\bin\Debug\compressFile.vshost.exe
     文件          71  2009-02-23 17:10  sj\01\compressFile\compressFile\bin\Debug\程序使用说明.txt
     文件         747  2009-02-10 13:38  sj\01\compressFile\compressFile\obj\Debug\compressFile.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 13:32  sj\01\compressFile\compressFile\obj\Debug\compressFile.csproj.GenerateResource.Cache
     文件       12800  2009-02-10 13:37  sj\01\compressFile\compressFile\obj\Debug\compressFile.exe
     文件         180  2009-02-10 13:36  sj\01\compressFile\compressFile\obj\Debug\compressFile.Form1.resources
     文件       26112  2009-02-10 13:37  sj\01\compressFile\compressFile\obj\Debug\compressFile.pdb
     文件         180  2009-02-10 13:36  sj\01\compressFile\compressFile\obj\Debug\compressFile.Properties.Resources.resources
     文件        2722  2009-02-10 13:36  sj\01\compressFile\compressFile\obj\Debug\ResolveAssemblyReference.cache
     文件        1356  2009-02-10 13:29  sj\01\compressFile\compressFile\Properties\AssemblyInfo.cs
     文件        2874  2009-02-10 13:29  sj\01\compressFile\compressFile\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 13:29  sj\01\compressFile\compressFile\Properties\Resources.resx
     文件        1097  2009-02-10 13:29  sj\01\compressFile\compressFile\Properties\Settings.Designer.cs
     文件         249  2009-02-10 13:29  sj\01\compressFile\compressFile\Properties\Settings.settings
     文件         941  2009-02-10 13:38  sj\02\decompressionFile\decompressionFile.sln
     文件       15872  2009-02-10 13:41  sj\02\decompressionFile\decompressionFile.suo
     文件        3990  2009-02-10 13:41  sj\02\decompressionFile\decompressionFile\decompressionFile.csproj
     文件        5007  2009-02-10 13:41  sj\02\decompressionFile\decompressionFile\Form1.cs
     文件        5488  2009-02-10 13:40  sj\02\decompressionFile\decompressionFile\Form1.Designer.cs
     文件        6218  2009-02-10 13:40  sj\02\decompressionFile\decompressionFile\Form1.resx
     文件         498  2009-02-10 13:38  sj\02\decompressionFile\decompressionFile\Program.cs
............此处省略43个文件信息

评论

共有 条评论