By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,926 Members | 1,839 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,926 IT Pros & Developers. It's quick & easy.

Creating archive files

P: n/a
From a windows application, I want to provide an "archive" facility which
will scan a specific directory and put specific files into some single
"Archive file", a bit like a zip-file I guess, but more windows standard.
Then I want to provide a function "Import from Archive" which will accept
the name of such an archive file, and be able to extract the files into some
(other) directory (though normally it will be imported on a different
machine that exported the file).

What is provided within the .NET framework to perform generic archiving and
recovery in this fashion ?
Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Jay
The Framework 2.0 will include a class called "GZipStream" that'll do
exactly what you need.
For now, maybe you should implement one.
"JezB" <je***********@blueyonder.co.uk> escreveu na mensagem
news:%2****************@TK2MSFTNGP10.phx.gbl...
From a windows application, I want to provide an "archive" facility which
will scan a specific directory and put specific files into some single
"Archive file", a bit like a zip-file I guess, but more windows standard.
Then I want to provide a function "Import from Archive" which will accept
the name of such an archive file, and be able to extract the files into
some (other) directory (though normally it will be imported on a different
machine that exported the file).

What is provided within the .NET framework to perform generic archiving
and recovery in this fashion ?

Nov 16 '05 #2

P: n/a
Hi JezB,

There is no built-in .Net functionality to support compressed files or
archives, but, there is a free utility called SharpZipLib
(http://www.icsharpcode.com/OpenSourc...b/Default.aspx) that
can handle zipping/unzipping files. This should solve your problem.

HTH,
~d

JezB wrote:
From a windows application, I want to provide an "archive" facility which
will scan a specific directory and put specific files into some single
"Archive file", a bit like a zip-file I guess, but more windows standard.
Then I want to provide a function "Import from Archive" which will accept
the name of such an archive file, and be able to extract the files into some
(other) directory (though normally it will be imported on a different
machine that exported the file).

What is provided within the .NET framework to perform generic archiving and
recovery in this fashion ?

Nov 16 '05 #3

P: n/a
"JezB" <je***********@blueyonder.co.uk> schrieb:
What is provided within the .NET framework to perform generic archiving
and recovery in this fashion ?


The Zip, GZip, BZip2 and Tar Implementation For .NET
<URL:http://www.icsharpcode.net/OpenSource/SharpZipLib/>

The VB.NET Resource Kit contains zipping functionality too:

The Visual Basic .NET Resource Kit
<URL:http://msdn.microsoft.com/vbasic/vbrkit/>

It contains ComponentOne Zip for .NET:

ComponentOne Zipô for .NET
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelIndex=14 &ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabI D=70>

Using J#'s zip functionality:

Using the Zip Classes in the J# Class Libraries to Compress Files and Data
with C#
<URL:http://msdn.microsoft.com/msdnmag/issues/03/06/zipcompression/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 16 '05 #4

P: n/a
"GZipStream"? what name space is that in? I have 2.0 installed at home and
would like to check it out.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Jay" <.> wrote in message news:e0**************@tk2msftngp13.phx.gbl...
The Framework 2.0 will include a class called "GZipStream" that'll do
exactly what you need.
For now, maybe you should implement one.
"JezB" <je***********@blueyonder.co.uk> escreveu na mensagem
news:%2****************@TK2MSFTNGP10.phx.gbl...
From a windows application, I want to provide an "archive" facility which will scan a specific directory and put specific files into some single
"Archive file", a bit like a zip-file I guess, but more windows standard. Then I want to provide a function "Import from Archive" which will accept the name of such an archive file, and be able to extract the files into
some (other) directory (though normally it will be imported on a different machine that exported the file).

What is provided within the .NET framework to perform generic archiving
and recovery in this fashion ?


Nov 16 '05 #5

P: n/a
Jay
System.IO.Compression

- Jay

"Wayne" <Me******@community.nospam> escreveu na mensagem
news:OI*************@TK2MSFTNGP15.phx.gbl...
"GZipStream"? what name space is that in? I have 2.0 installed at home and
would like to check it out.

--
Thanks
Wayne Sepega
Jacksonville, Fl
"When a man sits with a pretty girl for an hour, it seems like a minute.
But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

"Jay" <.> wrote in message news:e0**************@tk2msftngp13.phx.gbl...
The Framework 2.0 will include a class called "GZipStream" that'll do
exactly what you need.
For now, maybe you should implement one.
"JezB" <je***********@blueyonder.co.uk> escreveu na mensagem
news:%2****************@TK2MSFTNGP10.phx.gbl...
> From a windows application, I want to provide an "archive" facility which > will scan a specific directory and put specific files into some single
> "Archive file", a bit like a zip-file I guess, but more windows standard. > Then I want to provide a function "Import from Archive" which will accept > the name of such an archive file, and be able to extract the files into
> some (other) directory (though normally it will be imported on a different > machine that exported the file).
>
> What is provided within the .NET framework to perform generic archiving
> and recovery in this fashion ?
>



Nov 16 '05 #6

P: n/a
Thanks for that - I happen to be using .NET beta 2 so this will be ideal -
I'll check it out.

"Jay" <.> wrote in message news:e0**************@tk2msftngp13.phx.gbl...
The Framework 2.0 will include a class called "GZipStream" that'll do
exactly what you need.
For now, maybe you should implement one.
"JezB" <je***********@blueyonder.co.uk> escreveu na mensagem
news:%2****************@TK2MSFTNGP10.phx.gbl...
From a windows application, I want to provide an "archive" facility which
will scan a specific directory and put specific files into some single
"Archive file", a bit like a zip-file I guess, but more windows standard.
Then I want to provide a function "Import from Archive" which will accept
the name of such an archive file, and be able to extract the files into
some (other) directory (though normally it will be imported on a
different machine that exported the file).

What is provided within the .NET framework to perform generic archiving
and recovery in this fashion ?


Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.