WinRAR or WinZip

P

Pengyu

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

Noah Coad [MVP .NET/C#]

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#)
 
C

Chris LaJoie

people come to this newsgroup to ask questions. If you want to be a jerk,
go hang out in a Christian forum or something.
 
M

Marc Scheuner [MVP ADSI]

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/OpenSource/SharpZipLib/Default.aspx

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

Chris Hornberger

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
 
P

Pengyu

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

Michael Mayer

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
 
M

Mark Stevens

The following lists some command line parameters for WinZip:

http://memecode.com/docs/winzip.html

I have successfully used the -min option to add files to an archive.
WinZip does appear but it is minimised in the taskbar.

Hope this helps,
Mark

How to call up WinRAR or WinZip to compress and Decompress files without bring up WinRAR or WinZip windows?

Just like the "Extract here" if you right click an rar/zip file

From http://www.google.co.in/search?hl=e...g+up+WinRAR+or+WinZip+windows?+Just+like+the+"Extract+here"+if+you+right+click+an+rar/zip+file&meta=&rlz=1R2GGLT_enIN328&aq=f&oq=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
--
|\ _,,,---,,_ A picture used to be worth a
ZZZzzz /,`.-'`' -. ;-;;, thousand words - then along
|,4- ) )-,_. ,\ ( `'-' came television!
'---''(_/--' `-'\_)

Mark Stevens (mark at thepcsite fullstop co fullstop uk)

This message is provided "as is".
 
G

gregarican

The following lists some command line parameters for WinZip:

http://memecode.com/docs/winzip.html

I have successfully used the -min option to add files to an archive.
WinZip does appear but it is minimised in the taskbar.

Hope this helps,
Mark




--
       |\      _,,,---,,_          A picture usedto be worth a
ZZZzzz /,`.-'`'    -.  ;-;;,       thousand words - then along
      |,4-  ) )-,_. ,\ (  `'-'     came television!
     '---''(_/--'  `-'\_)          

Mark Stevens  (mark at thepcsite fullstop co fullstop uk)

This message is provided "as is".

Here's a free ZIP library that you can call from any .NET language -->
http://www.codeplex.com/DotNetZip. Looks simple enough, and doesn't
rely on your enduser running your own program to already have a ZIP
program installed on their computer...
 

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