Solved

VB.Net GZipstream

Posted on 2010-08-29
3
824 Views
Last Modified: 2012-05-10
I know how to compress a single file using GZip, but how would I compress a folder and all sub folders?
0
Comment
Question by:XGenwareS
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
thepanch earned 500 total points
ID: 33554996
gzip can only compress a single file. tar can archive multiple files, but it doesn't compress them. Therefore the two tools are oftne used together: first you archive all the files into one with tar, then you compress that file with gzip

and you use it like this
tar -cvzpf archive.tgz /home/example/public_html/folder
good luck
0
 

Author Closing Comment

by:XGenwareS
ID: 33555140
Worked perfect thanks
0
 
LVL 4

Expert Comment

by:thepanch
ID: 33555283
np anytime.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb.net - How to check if current user is an administrator? 6 34
consuming an asmx web service in winforms application 3 24
Server Error 11 47
Run time Error 4 34
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now