473,473 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 20977
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James Baker | last post by:
I'm using ASP and I need to generate a ZIP file that contains a list of files that I'm pulling from a database. I've determined WinZip's command line parameters so that I can use it, the problem...
4
by: EdB | last post by:
Has anyone ever interfaced with winZip from inside a VB.Net app? I'm looking to automatically zip up some files then delete them.
10
by: Steve | last post by:
Is there anyone with experience using the Winzip command line add-in? I can't get it to create the zip file with a space in the file name. Using: RetValue = Shell("C:\winzip\wzzip.exe...
2
by: Jim | last post by:
I all, I have a database on a user's network drive with the following path: E:\NewDB\StatsData.mdb I want to create a small "Utilities" database that the user can launch which will run WinZip...
3
by: Rob | last post by:
No way this should be that difficult... I have a program that does a file watch on a folder. When a file is created in this folder, I simply want to zip it up using WinZip (with the command...
15
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file (...
1
by: hannahg | last post by:
I am trying to incorparate the win zip command line processor in my code on an Access 2003 database form. The code that I downloaded made a call to the windows api. It requires that you use short...
11
by: Killer42 | last post by:
Hi all. Has anyone else noticed this? In the Add dialogue, WinZip no longer allows you to follow a shortcut. Instead it simply selects the shortcut file itself to add to the archive. This is...
0
by: yugho | last post by:
I'm sorry if I post Winzip question here, but I met a problem. I was running Winzip command by using process in VB.Net, but I had error that I don't know how to trace. 1. I create a batch file:...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.