Open zip file

R

Rob Oldfield

Is there any way that I can feed the path of a zip file to a vb.net windows
forms app and get at the files within it? I don't want to be reliant on
having winzip loaded on the client machine and I know that I could just
package a dos unzip utility in my app, but is there a better way of doing
it?
 
H

Herfried K. Wagner [MVP]

Rob,

Rob Oldfield said:
Is there any way that I can feed the path of a zip file to a vb.net
windows
forms app and get at the files within it? I don't want to be reliant on
having winzip loaded on the client machine and I know that I could just
package a dos unzip utility in my app, but is there a better way of doing
it?

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/product...3569&SubCategoryTypeID=0&TabMapID=57&TabID=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/>
 
R

Rob Oldfield

Herfried K. Wagner said:
Rob,



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&PanelI
ndex=14&ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabID=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/>

Thanks for the suggestions both of you. Sadly I'm still not getting
anywhere.

The VB resource kit is failing to install correctly on my machine... I'm
just getting "Server Application Unavailable" when I try going to the
welcome.aspx page. Is there any way I can get at ComponentOne directly
without using the built in navigation system?

The Sharp option I have working... but unless I'm missing it there doesn't
seem to be a way of actually getting at a file within a zip. (...the zips
I'm going to be playing with will contain csv files, and I want to be able
to read the contents of those files)

Any ideas?
 
R

Rob Oldfield

Rob Oldfield said:
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelI

Thanks for the suggestions both of you. Sadly I'm still not getting
anywhere.

The VB resource kit is failing to install correctly on my machine... I'm
just getting "Server Application Unavailable" when I try going to the
welcome.aspx page. Is there any way I can get at ComponentOne directly
without using the built in navigation system?

The Sharp option I have working... but unless I'm missing it there doesn't
seem to be a way of actually getting at a file within a zip. (...the zips
I'm going to be playing with will contain csv files, and I want to be able
to read the contents of those files)

Any ideas?

I've now found the ComponentOne site and downloaded the zip thing directly
(but can't try it right now). Is it the same thing as the one packaged in
the resource kit?
 
R

Rob Oldfield

Maybe this helps you to fix the problem:

<URL:http://msdn.microsoft.com/vbasic/vbrkit/faq/#installcode>


It wasn't that solution... it was the other one. I needed to switch the
machine.config authentication from machine to system.

....and I'm now happily unzipping files (Well, almost happily, the only ones
I can't unzip - comes up with 'bad zip file', although I can open them in
WinZip - are the ones from the company who my files are going to be coming
from. Never mind, that's their problem.)

Many thanks for the help. (And apologies for earlier sending this to your
reply address. I must have hit the wrong button.)
 
H

Herfried K. Wagner [MVP]

Rob,

Rob Oldfield said:
It wasn't that solution... it was the other one. I needed to switch the
machine.config authentication from machine to system.

...and I'm now happily unzipping files

I am glad to hear that it finally worked.
(And apologies for earlier sending this to your
reply address. I must have hit the wrong button.)

No problem -- I don't read mail that is sent to this address :).
 
G

Guest

Hi Herfried,

Could you please give me some hints (dll name or something like this)
regarding the zipping functionality within VB.NET resource kit. I tried to
find anything on Microsoft site or within the resource kit but I couldn't
identify it.

Thanks,
 
H

Herfried K. Wagner [MVP]

Adrian said:
Could you please give me some hints (dll name or something like this)
regarding the zipping functionality within VB.NET resource kit. I tried to
find anything on Microsoft site or within the resource kit but I couldn't
identify it.

I feel sorry, I currently don't have the resource kit installed.
 
R

Rob Oldfield

If I remember right, then there's a demo unzip utility. I can't remember if
you have to add a reference to C1.Unzip (that might be wrong.. I'm not at
the relevant machine at the moment.)

Post another message to let me know what stage you're at if you need any
more help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top