473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating archive files

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
6 7774
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
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
"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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dave | last post by:
I first started using HCW.exe to compile .rtf filew created with MS Word a couple of weeks ago. I used the file | new menu then selected New project in the dialog box and everything worked as...
3
by: D.M | last post by:
In the Access 2002 mdb database I want to disable creating MDE files. Thanks in advance.
1
by: Vicky | last post by:
Hi, Is there any tool or C# sample code, which can create dummy source files of various extensions like .js, .xml, .cs etc any in various file sizes on a network share? I need these files for...
0
by: Chris | last post by:
Is there a way to stop Visual Studio 2003 from creating resource files for Web forms and User Controls? We have localized all of our text to language specific Resource.resx files and don't need or...
5
by: Praveen | last post by:
I have script files embedded as resources in my dll. During runtime, I would like to write it out into the app dir (or a app sub-dir) and send the appropriate virtual path to the client. This makes...
3
by: Charles Law | last post by:
There appear to be a myriad of tools for creating help files for .NET applications. What do people use, and what is the preferred help file format? In the past I have used HDK, which...
3
by: John Devlon | last post by:
Hi, I would like to create a small application that creates a new PDF-File, using an excisting PDF-file as background template, adding some text and a unique barcode. I would like to create my...
1
by: stuck1512 | last post by:
hi, i was writing an apache module & successful in retrieving archived files from a folder. i compared all file properties before retrieving but the problem is now i have to retrieve them as...
5
by: Aryan | last post by:
Hi, I am using C# with framework 2.0 and creating PDF files on-fly, along with this I am using Windows 2003 Server. I am using Byte to take the data input and then save into pdf format on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.