469,352 Members | 2,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

WinRAR or WinZip

How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.

Thank you very much in advance,

Pengyu.
Nov 15 '05 #1
7 20654
There are ZIP libraries that allow you to directly code in zip functions.
You can also call WinZip via the command line with many options using the
"WinZip Command Line Add-on". I use it quite a bit and it works great.

http://www.winzip.com/wzcline.htm

-Noah Coad
Microsoft MVP & MCP (.NET/C#)
"Pengyu" <ho**@stat.harvard.edu> wrote in message
news:04****************************@phx.gbl...
How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.

Thank you very much in advance,

Pengyu.

Nov 15 '05 #2
people come to this newsgroup to ask questions. If you want to be a jerk,
go hang out in a Christian forum or something.

"Chris Hornberger" <ch***@chornbe.com> wrote in message
news:53**************************@posting.google.c om...
Does no one do even the slightest bit of research any more? STFW for
"compression api winzip", etc.
"Pengyu" <ho**@stat.harvard.edu> wrote in message

news:<04****************************@phx.gbl>...
How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.

Thank you very much in advance,

Pengyu.

Nov 15 '05 #3
>How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.


If you're using the WinZip format, you could also use the Sharp ZipLib
for manipulating ZIP archives without needing to call out to external
utilities.....

http://www.icsharpcode.net/OpenSourc...b/Default.aspx

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #4
That's an excellent suggestion, however, given Sun and MS's rocky
past, I'd suggest exposing a J# class based on your own published
interface (written in C# if possible) that handles ALL your ZIP
interaction. I've a strong feeling J# is going to go the way of the
dodo after a time, due to legalities and/or lack of interest/support.
Don't get me wrong, I think it's nice they added it to .NET, but I
don't think it's going to be open ended. Anyway, as I was saying, I'd
suggest doing all the ZIP interaction in a J# class, so that when J#
is officially retired, you only have to replace that class with a C#
(or other language class) that wraps someone else's ZIP api, which I'm
sure is forthcoming.

$.02

"Michael Mayer" <mrmayer at charter dot net> wrote in message news:<vi************@corp.supernews.com>...
Here's another way to do it using J#'s zip libraries. I haven't used
it yet, but it looks promising. I believe you download J# runtime
(links provided in the article), import vjslib.dll to your project,
then you can use classes such as java.util.zip.ZipFile

http://msdn.microsoft.com/msdnmag/is...n/default.aspx

-mike

"Pengyu" <ho**@stat.harvard.edu> wrote in message
news:04****************************@phx.gbl...
How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.

Thank you very much in advance,

Pengyu.

Nov 15 '05 #5
You can also take a look at Xceed Zip for .NET

http://www.xceedsoft.com/products/ZipNet/

--
Martin Plante
Xceed Software Inc.
http://www.xceedsoft.com

"Marc Scheuner [MVP ADSI]" <m.********@inova.SPAMBEGONE.ch> wrote in message
news:0j********************************@4ax.com...
How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.


If you're using the WinZip format, you could also use the Sharp ZipLib
for manipulating ZIP archives without needing to call out to external
utilities.....

http://www.icsharpcode.net/OpenSourc...b/Default.aspx

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch

Nov 15 '05 #6
Thank you very much for all your kind responses.
Here is what I am doing now. I use WinRAR, which I think
is more flexible and open than WinZIP.

string WinRAR_Path = find where is WinRAR installed.
System.Diagnostics.Process.Start(WinRAR_Path, "E -y
__FILE_NAME__");

Pengyu.

-----Original Message-----
How to call up WinRAR or WinZip to decompress files
without bring up WinRAR or WinZip windows? Just like
the "Extract here" if you right click an rar/zip file
using your mouse.

Thank you very much in advance,

Pengyu.
.

Nov 15 '05 #7
I guess I would have to agree with you Chris. I wasn't thinking very
long term with my post.

I do like the idea of a C# wrapper class, even if it is just to expose
a static method to use WinRar or WinZip, just so you can more easily
change implementations (especially given the number of unique ideas
posted to this thread).

-mike

"Chris Hornberger" <ch***@chornbe.com> wrote in message
news:53**************************@posting.google.c om...
That's an excellent suggestion, however, given Sun and MS's rocky
past, I'd suggest exposing a J# class based on your own published
interface (written in C# if possible) that handles ALL your ZIP
interaction. I've a strong feeling J# is going to go the way of the
dodo after a time, due to legalities and/or lack of interest/support. Don't get me wrong, I think it's nice they added it to .NET, but I
don't think it's going to be open ended. Anyway, as I was saying, I'd suggest doing all the ZIP interaction in a J# class, so that when J# is officially retired, you only have to replace that class with a C#
(or other language class) that wraps someone else's ZIP api, which I'm sure is forthcoming.

$.02

Nov 15 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by James Baker | last post: by
4 posts views Thread by EdB | last post: by
10 posts views Thread by Steve | last post: by
2 posts views Thread by Jim | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.