压缩4个月的归档文件 [英] Compress 4 months archive files

查看:94
本文介绍了压缩4个月的归档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#.net1.1压缩4个月的存档文件并移动到其他文件夹...

我们正在使用VS2003。请帮助我

How to compress 4 months archive files using C#.net1.1 and move to other folder...
We are using VS2003.Please help mee

推荐答案

您可以将ZIP与.NET库一起使用#ziplib:

http: //www.icsharpcode.net/opensource/sharpziplib/ [ ^ ]。



另一个选择是使用SevenZipSharp,一个着名的7-Zip的.NET包装器。该库允许您从一组良好的压缩格式中进行选择。请参阅:

http://en.wikipedia.org/wiki/7-Zip [ ^ ],

http://sevenzipsharp.codeplex.com/ [ ^ ]。



两个ZIP库都是开源的。



但是,我不确定你是否真的需要压缩归档。如果这是您的代码存档,那么使用其中一个版本控制系统会好得多:

http: //en.wikipedia.org/wiki/Revision_Control_System [ ^ ]。



实际上,如果你不使用它,请认为你的所有断言都非常濒临灭绝。即使您存档,也可能会丢失这些存档。一个好的团队的开发人员经常在每次小的一致修改之后将代码提交到代码库,这通常是一天很多次。如果你没有为你的开发做这件事,即使你一直在发展,你应该停止做你正在做的事情并建立这种系统的使用。请参阅此讨论:

修订版控制系统,可供选择? [ ^ ]。



-SA
You can use ZIP with the .NET library #ziplib:
http://www.icsharpcode.net/opensource/sharpziplib/[^].

Another option is using SevenZipSharp, a .NET wrapper of the famous 7-Zip. This library will allow you to choose from a good set of compression formats. Please see:
http://en.wikipedia.org/wiki/7-Zip[^],
http://sevenzipsharp.codeplex.com/[^].

Both ZIP libraries are open-source.

However, I am not sure you really need compression for archiving. If this is your code archives, it would be much better to use one of Revision Control Systems:
http://en.wikipedia.org/wiki/Revision_Control_System[^].

Practically, if you don''t use one, consider all your asserts highly endangered. Even if you archive, you can get lost in those archive. It''s very typical that developers of a good team commit code to the code base after each small consistent modification, sometimes, many times a day. If you are not doing it for your development, even if you develop along, you should stop doing what you are doing and establish the use of such system. Please see this discussion:
Revision control systems, which to choose from?[^].

—SA


这篇关于压缩4个月的归档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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