all groups > dotnet windows forms > february 2005 >
You're in the

dotnet windows forms

group:

Open zip file


Open zip file Rob Oldfield
2/21/2005 5:11:14 PM
dotnet windows forms:
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?

Re: Open zip file Stefan Simek
2/21/2005 6:17:12 PM
[quoted text, click to view]

Look at SharpZipLib at
www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

HTH,
Re: Open zip file Herfried K. Wagner [MVP]
2/21/2005 10:09:51 PM
Rob,

"Rob Oldfield" <blah@blah.com> schrieb:
[quoted text, click to view]

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&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/>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: Open zip file Rob Oldfield
2/22/2005 11:24:30 AM
[quoted text, click to view]
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelI
ndex=14&ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabID=70>
[quoted text, click to view]

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?

Re: Open zip file Rob Oldfield
2/22/2005 8:10:21 PM
[quoted text, click to view]

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?

Re: Open zip file Herfried K. Wagner [MVP]
2/22/2005 11:15:00 PM
Rob,

"Rob Oldfield" <blah@blah.com> schrieb:
[quoted text, click to view]

Maybe this helps you to fix the problem:

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Re: Open zip file Rob Oldfield
2/23/2005 7:48:35 PM
[quoted text, click to view]


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.)

Re: Open zip file Herfried K. Wagner [MVP]
2/23/2005 9:06:41 PM
Rob,

"Rob Oldfield" <blah@blah.com> schrieb:
[quoted text, click to view]

I am glad to hear that it finally worked.

[quoted text, click to view]

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Re: Open zip file Adrian
3/6/2005 3:27:02 PM
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,

[quoted text, click to view]
Re: Open zip file Herfried K. Wagner [MVP]
3/7/2005 6:48:16 PM
"Adrian" <abcdefg@noemail.nospam> schrieb:
[quoted text, click to view]

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Re: Open zip file Rob Oldfield
3/10/2005 11:24:00 PM
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.


[quoted text, click to view]
<URL:http://www.componentone.com/products.aspx?TabTypeID=1&ItemType=1&PanelI
ndex=14&ItemID=53569&SubCategoryTypeID=0&TabMapID=57&TabID=70>
[quoted text, click to view]

AddThis Social Bookmark Button