Eric Nelson <Er********@discussions.microsoft.com> wrote:
Wow that was quick (10 min from post to reply)
I saw the SharpZipLib reference (in the intervening 10min) while reading the
FAQ you mentioned to someone else. I didn't realize it was free so I didn't
look at it.
But... isn't there a way to just say gzip|tar? For example, I also noticed
Process.Start which must be .net's way of saying system(...).
There are some differences between system() and Process.Start, I
believe, in terms of shell functions and paths, but I haven't looked in
detail.
You'd have to build the functionality you want from SharpZipLib rather
than it coming prepackaged, I think, but it shouldn't be too hard to
just extract all the files, creating any appropriate directories on the
way.
You could certainly run gunzip and tar, although you couldn't pipe the
result from one to the other unless you started a shell to do it. You
could gunzip from .tgz to .tar and then call tar afterwards though.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too