I have a directory that contains several files. I want compress this folder to a zip or tar.gz file. How can I do his work in C#?
This is a good discussion that discusses the possibility of doing this without any third party libraries. I think you should have a look on it.
Here is a large repository of sample codes that can help you in your work. Good Luck..