WinZip utility

G

Guest

Windows has a built-in Zip utility.
Is there a way to access that utility using command line?
Also is there a command line for unzipping a file which has been zipped
using Windows Zip utility.

Thank you.
 
V

Vagabond Software

source said:
Windows has a built-in Zip utility.
Is there a way to access that utility using command line?
Also is there a command line for unzipping a file which has been zipped
using Windows Zip utility.

Thank you.

I believe the 'compress' and 'extract' commands are what you are looking
for. Use 'compress /?' to bring up options. Extract should work for Zipped
files.

carl
 
G

Guest

I do not see any "Compress" or "Extract" command on the command line.
Are you sure you are talking about these commands on the cmd.exe ?
I wanted to find out the commands for the Zip utility built into Windows XP
and not Winzip
 
D

David Candy

No it doesn't. It merely treats zips as if they were MS setup compressed files (which means it will copy the file as it is not MS setup compressed). Expand is for cab files or individual compressed files (which are very similar to cab).

C:\Program Files\Support Tools>expand -r "C:\Documents and Settings\David Candy\
Desktop\Topmost.zip" c:\
Microsoft (R) File Expansion Utility Version 5.1.2600.0
Copyright (C) Microsoft Corp 1990-1999. All rights reserved.

Copying c:\documents and settings\david candy\desktop\topmost.zip to c:\topmost.
zip.
c:\documents and settings\david candy\desktop\topmost.zip: 19476 bytes copied.
 
V

Vagabond Software

source said:
I do not see any "Compress" or "Extract" command on the command line.
Are you sure you are talking about these commands on the cmd.exe ?
I wanted to find out the commands for the Zip utility built into Windows
XP
and not Winzip

My apologies. Download the Windows Server 2003 Resource Kit:

http://tinyurl.com/6p6cy

You can then use Compress and Expand on zip files. There are many other
great command tools in that kit as well.

carl
 
G

Guest

Ok I guess you misunderstood me, I do not want to download anything.
The whole point of me using inbuilt windows functionality is that if my
application tries to unzip a file on any Win XP, the target machine should be
capable of doing without installing any additional utilities.
If the target machine does not have the resource kit, my application is
going to fail.
So what I am trying to do is use the context menu options which I get by
right clicking on a folder and within "Send To" menu I see "Compress (zipped)
file" option
I want to do the same exact thing.
But my main requirement is I also want to unzip the file without going
through the Unzip wizard which currently windows xp starts.

I was looking in registry and saw this options
@%SystemRoot%\system32\zipfldr.dll,-10226
 
V

Vagabond Software

source said:
Ok I guess you misunderstood me, I do not want to download anything.
The whole point of me using inbuilt windows functionality is that if my
application tries to unzip a file on any Win XP, the target machine should
be
capable of doing without installing any additional utilities.
If the target machine does not have the resource kit, my application is
going to fail.
So what I am trying to do is use the context menu options which I get by
right clicking on a folder and within "Send To" menu I see "Compress
(zipped)
file" option
I want to do the same exact thing.
But my main requirement is I also want to unzip the file without going
through the Unzip wizard which currently windows xp starts.

I was looking in registry and saw this options
@%SystemRoot%\system32\zipfldr.dll,-10226

I just looked at zipfldr.dll and it does not appear to be easily accessible.
I can extract the Windows From dialogs and context menus, but there are no
functions exposed where I can consume them with an application.

What language are you using for your application? I've had to deal with CAB
files (a nightmare), but never Zips. However, most people use SharpZipLib:

http://www.icsharpcode.net/OpenSource/SharpZipLib/

carl
 
D

David Candy

This is the 100th time I've pointed out compress does not do zips (even though it can do MSZip which is not a zip file).

See this other thread. You can only open a zip file via command line.
 
T

Tim Slattery

source said:
Windows has a built-in Zip utility.
Is there a way to access that utility using command line?

Unfortunately, no.
Also is there a command line for unzipping a file which has been zipped
using Windows Zip utility.

Google "free command line zip". Many things appear.
 
W

Wesley Vogel

That will teach me to post when I don't know what I am talking about. I
should have tried it first.

Although command line programs have there place, I see no reason to use the
command line to zip or extract files/folders when one can simply right click
a file/folder and zip or extract.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
H

HeyBub

Wesley said:
That will teach me to post when I don't know what I am talking about.
I
should have tried it first.

Although command line programs have there place, I see no reason to
use the
command line to zip or extract files/folders when one can simply
right click
a file/folder and zip or extract.

You can't right-click from a batch file. You can't right-click from a
command prompt. And, until recently, you couldn't right-click from a Mac.
 
H

HeyBub

source said:
Ok I guess you misunderstood me, I do not want to download anything.
The whole point of me using inbuilt windows functionality is that if
my application tries to unzip a file on any Win XP, the target
machine should be capable of doing without installing any additional
utilities.
If the target machine does not have the resource kit, my application
is going to fail.
So what I am trying to do is use the context menu options which I get
by right clicking on a folder and within "Send To" menu I see
"Compress (zipped) file" option
I want to do the same exact thing.
But my main requirement is I also want to unzip the file without going
through the Unzip wizard which currently windows xp starts.

So use WinZIP (or equivalent) on the host machine and turn the result into a
self-extracting ZIP file. The target machine can surely EXECUTE something.
 
W

Wesley Vogel

What do I care what you can or cannot do with a Mac.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

David Candy

He mightn't be able to but I can r/c from a batch or command prompt.

See attached file.
 
W

Wesley Vogel

&Open 5
E&xplore 8
S&earch... 10
&Print Directory 16
-----
S&haring and Security... 24
0 (should be WinZip)
Scan with &AVG Free 19
-----
0 (should be SendTo)
-----
Cu&t 4
&Copy 5
-----
Create &Shortcut 16
&Delete 7
(Rename missing)
-----
P&roperties 11

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

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