attachmentunzip.cs
来自「压缩和解压缩的源码,可以支持大多数文件的压缩和解压缩」· CS 代码 · 共 28 行
CS
28 行
using System;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.BZip2;
using ICSharpCode.SharpZipLib.Checksums;
using ICSharpCode.SharpZipLib.Zip.Compression;
using ICSharpCode.SharpZipLib.Zip.Compression.Streams;
namespace SoundCondense
{
/// <summary>
/// AttachmentUnZip 的摘要说明。
/// </summary>
public class AttachmentUnZip
{
public static void UpZip(string zipFile)
{
string [] FileProperties = new string[2];
FileProperties[0] = zipFile;//待解压的文件
FileProperties[1] = zipFile.Substring(0,zipFile.LastIndexOf("\\")+1);//解压后放置的目标目录
UnZipClass UnZc = new UnZipClass();
UnZc.UnZip(FileProperties);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?