Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to compress 4 months archive files using C#.net1.1 and move to other folder...
We are using VS2003.Please help mee
Posted

1 solution

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
 
Share this answer
 
v3
Comments
Maciej Los 5-Mar-13 16:56pm    
+5!
Sergey Alexandrovich Kryukov 5-Mar-13 16:59pm    
Thank you, Maciej.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900