c#完成文件解压缩

1.引用using ICSharpCode.SharpZipLib;

2.执行调用

ICSharpCode.SharpZipLib.Zip.FastZip zip = new ICSharpCode.SharpZipLib.Zip.FastZip();

  zip.ExtractZip(“g:\\test.rar“, "g:\\applications","");//将g:\\test.rar将文件解压到g:\\applications目录且建立以test 命名的文件夹

组件下载(只供学习讨论):

ICSharpCode.SharpZipLib.rar

转载于:https://www.cnblogs.com/commas/archive/2011/03/09/1977814.html

你可能感兴趣的:(c#)