unzipping files

  • Thread starter Thread starter Paul Brownjohn
  • Start date Start date
P

Paul Brownjohn

Hi Guys

I need a dll that just unzips zipped files...does anyone know of a freeware
or cheapo shareware one that does this. I know there are quite a lot of
rather sophisticated ones out there that do achiving and password protection
and create achives and bells and whistles but they are $100+ and I am
reluctant to pay for all that functionality when I don't need it...I just
want to unzip non-password protected achives

tia

Paul BJ
 
Hmm...that's something I haven't tried and didn't know you could do. This is
I take it, a standard Win API call, nothting to do with the .NET framework.
How do you use a a standard API call from within C#?

Cheers

PaulBJ
 
Paul Brownjohn said:
I need a dll that just unzips zipped files...does anyone know of a freeware
or cheapo shareware one that does this. I know there are quite a lot of
rather sophisticated ones out there that do achiving and password protection
and create achives and bells and whistles but they are $100+ and I am
reluctant to pay for all that functionality when I don't need it...I just
want to unzip non-password protected achives

SharpZipLib comes up quite often, which I'm sure will do what you want.
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
 
PInvoke it using DLLImpor

Jackson Davis [msft
-
Please post questions to the newsgroup - everyone benefits
This post is provided "AS IS" with no warranties, and confers no right
Sample code subject to http://www.microsoft.com/info/cpyright.ht

----- Paul Brownjohn wrote: ----

Hmm...that's something I haven't tried and didn't know you could do. This i
I take it, a standard Win API call, nothting to do with the .NET framework
How do you use a a standard API call from within C#

Cheer

PaulB




Jackson Davis said:
There is also a win32 API for doing this if you don't want to rely on th
JSharp runtime. Take a look a

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/bas
/decompressing_a_single_file.as
In particular, the LZOpenFile function and it's related calls
Jackson Davis [msft
-
Please post questions to the newsgroup - everyone benefits
This post is provided "AS IS" with no warranties, and confers no right
Sample code subject to http://www.microsoft.com/info/cpyright.ht
 
yes, this is true. This API only works on single files compressed via LZ. However, Paul originally asked for a cheapo way to decompress that doesn't involved password protection or archiving. It won't work for actual zip archives

Jackson Davi
-
This post is provided "AS IS" with no warranties, and confers no right
Sample code subject to http://www.microsoft.com/info/cpyright.ht
 

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

Similar Threads

Huge data file 4
C# unzipping .ZIP files 8
C# unzipping kind of 7
Unzip 5
unzipping and even zipping. 10
Unzipping files 6
Unzipping documents 4
Unable to unzip without the right password 4

Back
Top