如何压缩.NET 1.1中的文件 [英] How to compress files in .NET 1.1

查看:113
本文介绍了如何压缩.NET 1.1中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在.NET 1.1中以[* .zip]格式压缩文件。我不想使用SharpZip压缩,因为我有随机错误 - 访问被拒绝 - 当运行它在.NET 1.1。

I need to compress files in [*.zip] format in .NET 1.1. I don't want to use SharpZip for compression as I got random errors - "Access Denied" - when running it in .NET 1.1.

只有将程序集放在GAC上时,SharptZip才能正常工作 - 这在我的项目中不是一个选项。这就是问题。检查: http://forums.asp.net/p/1139901/1839049 .aspx#1839049

SharptZip will work properly only if I put the assembly on the GAC - which is not an option in my project. This is the problem. Check this: http://forums.asp.net/p/1139901/1839049.aspx#1839049

推荐答案

您可以使用zip的命令行工具。例如 7-Zip

You can use a command-line tool for zip. For example 7-Zip.

这篇关于如何压缩.NET 1.1中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆