473,405 Members | 2,171 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,405 software developers and data experts.

Class to process ZIP or CAB files

A summary search in MSDN did not produce anything.

Is there a class in .NET which allows management of ZIP or CAB files? Add/modify/remove
files in a specified CAB or ZIP file. I could always call an external process but I rather
do the ZIP/CAB file management from within my C# program.

Nov 17 '05 #1
4 6263
Gaetan,

There is nothing in .NET 1.1 and before. You will have to use a third
party library (I think there is something galled SharpLib or something of
that nature which has been recommended a number of times).

For .NET 2.0, you can use the classes in the System.IO.Compression
namespace to zip/unzip zip archives.

For cab files, there is still no support, but I believe there are APIs
that you can use to access them. You should be able to call these through
the P/Invoke layer.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Gaetan" <so*****@somewhere.com> wrote in message
news:a6********************************@4ax.com...
A summary search in MSDN did not produce anything.

Is there a class in .NET which allows management of ZIP or CAB files?
Add/modify/remove
files in a specified CAB or ZIP file. I could always call an external
process but I rather
do the ZIP/CAB file management from within my C# program.

Nov 17 '05 #2
KH
In .NET 2.0 there is the System.IO.Compression.GZipStream class
"Gaetan" wrote:
A summary search in MSDN did not produce anything.

Is there a class in .NET which allows management of ZIP or CAB files? Add/modify/remove
files in a specified CAB or ZIP file. I could always call an external process but I rather
do the ZIP/CAB file management from within my C# program.

Nov 17 '05 #3
Thanks Nicholas for the prompt reply.

Although it is not what I was looking for, I found an article that could allow me to
manipulate ZIP files through C# calls to J#:

"Using the Zip Classes in the J# Class Libraries to Compress Files and Data with C#"
http://msdn.microsoft.com/msdnmag/is...n/default.aspx

thanks again.

On Mon, 19 Sep 2005 12:19:23 -0400, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.com> wrote:
Gaetan,

There is nothing in .NET 1.1 and before. You will have to use a third
party library (I think there is something galled SharpLib or something of
that nature which has been recommended a number of times).

For .NET 2.0, you can use the classes in the System.IO.Compression
namespace to zip/unzip zip archives.

For cab files, there is still no support, but I believe there are APIs
that you can use to access them. You should be able to call these through
the P/Invoke layer.

Hope this helps.

Nov 17 '05 #4
If you don't mind installing the J# runtime you can use the
java.util.zip.ZipEntry class.
There's a tutorial here:
http://codeproject.com/csharp/VmEasyZipUnZip.asp

Very little support for CAB files exists, either managed or unmanaged, so I
would stick with zip files if I were you.

"Gaetan" <so*****@somewhere.com> wrote in message
news:a6********************************@4ax.com...
A summary search in MSDN did not produce anything.

Is there a class in .NET which allows management of ZIP or CAB files? Add/modify/remove files in a specified CAB or ZIP file. I could always call an external process but I rather do the ZIP/CAB file management from within my C# program.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: iana_kosio | last post by:
Hi, I am using HttpWebRequest class to communicate with remote server. In some cases the server would return 5xx status code which results in HttpWebRequest object throwing an exception. I,...
1
by: Riaan | last post by:
Hi Everybody, I have 2 classes Events and exObjectCreation. I am publicly inheriting from Events ( Events class also compiles to dll, it can be used in other places). When I build my new...
0
by: Piotr | last post by:
I think that file System.Windows.Forms.NewControl should be interpreted as: namespace System.Windows.Forms { public class NewControl {
4
by: Khoa Nguyen | last post by:
Hi, I have a requirement to process all files in a directory in chronological order. The os.listdir() function, however, lists the files in random order. Is there a similar function in Python...
5
by: KraftDiner | last post by:
Hi I need help writing a python script that traverses (recursivly) a directory and its sub directories and processes all files in the directory. So at each directory if there are files in it I...
0
by: vbfoobar | last post by:
Hello, I am looking for Python code no other language wanted) that I couls use/reuse/adapt to implement (via CGI, no specific app server wanted) a web-based app that would offer the following...
7
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking...
2
by: lucius | last post by:
I am working with a site that uses inline code in .aspx files and C# code in the header area. I would like to add some HTTPModules and HttpHandlers but am not sure where to put the .cs files and...
2
by: Alex | last post by:
Hello, I'm creating a program to parse a directory and all files within that directory (including subdirectories), but 'directoryinfo' only parses the current directory. Is it possible to have...
3
by: tig2810 | last post by:
Hi I have a problem with filesystemwatcher. My program works fine but there's no event to process existing files in the dir on startup and I'm not sure what is the correct way of doing this? I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.