Can I Zip with cmd

H

helpme

In Explorer I can create a "Compressed (zipped) Folder".
Is there a way zip a bunch of files in cmd.exe?
 
V

Vanguard

In Explorer I can create a "Compressed (zipped) Folder".
Is there a way zip a bunch of files in cmd.exe?


Nope. The zip support is added by registering a DLL file to which an
API was added to Windows Explorer to call methods (functions) from the
DLL file.

For DOS level support, find another zip tool, like 7-Zip (run "7z.exe"
at the command line, and you may want to add its path to your system
PATH environment variable).
 
J

jameshanley39

In Explorer I can create a "Compressed (zipped) Folder".
Is there a way zip a bunch of files in cmd.exe?

for history's sake, i'll mention that in the days of DOS, people used
PKZIP and PKUNZIP .
pkzip -rp blah <-- zip up all files including subdirectories , in
blah.zip
pkzip -rp -ex blah <-- ditto, but better compression, slightly slower.

pkunzip -d blah.zip <-- unzip, and make subdirectories
blah.zip could be replaced with *.zip or *.* , which can work as a
shorthand if that's the only zip file you want unzipped.


I think they were free then, no nag screens. Maybe there were
shareware.

In those days many didn't have internet access and were forced to get
their information from , and only from, magazines. PKZIP tended to be
on the cd.

PKZIP and PKUNZIP are still available. And now there's a windows
version of pkzip. But - maybe around windows 95 time, Winzip really
took off, and released command line versions (of winzip).

If you had googled, you'd have found.
 
V

Vanguard

for history's sake, i'll mention that in the days of DOS, people
used
PKZIP and PKUNZIP .

PKzip did not come with DOS or Windows. It was and is a 3rd party
program that the user has to install. I think the one that you are
thinking of that was free was PKarc
(http://en.wikipedia.org/wiki/Phil_Katz). When it became PKzip, it
was shareware.

There have been times when WinZip screws up, like saving the wrong
hash value for a .zip file so it bitches when you try to extract
(ignore and extract anyway). Happened for .zip archives over 4GB in
size or with more the 64K entires (files). PKzip didn't have the
problem (actually they enlarged their capacities before WinZip who has
always been slow to fix reported and reproducible problems). When I
had both PKzip and WinZip, PKzip was significantly faster.

Both PKzip ($30) and WinZip ($30) cost money. There are several free
alternatives now.
 
H

helpme

Vanguard said:
Nope. The zip support is added by registering a DLL file to which an
API was added to Windows Explorer to call methods (functions) from the
DLL file.

For DOS level support, find another zip tool, like 7-Zip (run "7z.exe"
at the command line, and you may want to add its path to your system
PATH environment variable).

Thanks... I have 7zip on my system...somewhere... I'll take a look
at the command line capabilities...
 
J

jameshanley39

I think the one that you are
thinking of that was free was PKarc

That didn't come with DOS or Windows either. It was third party (that
is meant as an equally ridiculous retort - and yes, it's true).

I hadn't actually heard of PKARC. In those days, my information was
limited to some rubbish expensive monthly magazines. I used the
shareware PKZIP, but the shareware was friendly enough that it didn't
nag. Maybe it mentioned it somewhere in pkzip /?, but it's not
something that stuck in my mind, so I barely noticed it then even if I
did.

A bit like DOOM - same era too.
(http://en.wikipedia.org/wiki/Phil_Katz). When it became PKzip, it
was shareware.

There have been times when WinZip screws up, like saving the wrong
hash value for a .zip file so it bitches when you try to extract
(ignore and extract anyway). Happened for .zip archives over 4GB in
size or with more the 64K entires (files). PKzip didn't have the
problem (actually they enlarged their capacities before WinZip who has
always been slow to fix reported and reproducible problems). When I
had both PKzip and WinZip, PKzip was significantly faster.

Both PKzip ($30) and WinZip ($30) cost money. There are several free
alternatives now.

Many people tend to use winzip despite the nag screen, and some still
don't realise it's shareware!

I can't remember why I quit using 7zip, maybe 'cos when I tried it
didn't have all the features unless i installed 3rd party progs, i'm
not sure.

I'm sure I tried some decompression programs that try to be "all
things to all men" but they didn't really deliver. Winrar looked far
superior in GUI to winzip, but I can't remember why, maybe I found its
handling of ISOs to be inferior, or I got errors.

In the end I decided all I need is the right click - shell extension.
No need for the whole GUI. I guess it's good for that.

But for ISOs i'd use other payware like MagicISO or UltraISO.

I don't need all the alternatives to ZIP. ZIP and ISO are fine. And
i don't like programs that associate themselves with ISOs, or even
have features that deal with ISOs, but don't handle them so well.

I can't remember exactly what issues I ran into, prob 'cos i didn't
want to remember (why remember all the issues of bad alternatives,
it's endless, and you don't want to seek an encyclopedic knowledge of
that!). But I didn't keep those programs for long.
 
G

Gary S. Terhune

LOL!

"Better to keep one's mouth shut and have people think you're dumb than to
open it and remove all doubt."
 
K

Ken Blake, MVP

for history's sake, i'll mention that in the days of DOS, people used
PKZIP and PKUNZIP .


If we're talking about history, I'll mention that the "PK" of PKZip
stood for Phil Katz, the man who invented the zip format and wrote
PKZIP and PKUNZIP.
 
J

jameshanley39

LOL!

"Better to keep one's mouth shut and have people think you're dumb than to
open it and remove all doubt."

--
Gary S. Terhune
MS-MVP Shell/User
www.grystmill.com

Well you've failed your own test then.

Furthermore, don't top post.

<snip>
 
G

Gary S. Terhune

Oh, I see. Another bottom-posting Nazi. In case it passed you, I was
referring to Vanguard, who's first assertion removed any desire to read the
rest of his post.
 
C

Curt Christianson

Ken,

If you hadn't dated yourself the other night when you mentioned your age,
you sure did now! <rvvf>

--
HTH,
Curt

Windows Support Center
www.aumha.org
Practically Nerded,...
http://dundats.mvps.org/Index.htm

| On Sat, 18 Aug 2007 17:53:07 -0700, "(e-mail address removed)"
|
|
| > for history's sake, i'll mention that in the days of DOS, people used
| > PKZIP and PKUNZIP .
|
|
| If we're talking about history, I'll mention that the "PK" of PKZip
| stood for Phil Katz, the man who invented the zip format and wrote
| PKZIP and PKUNZIP.
|
| --
| Ken Blake, Microsoft MVP Windows - Shell/User
| Please Reply to the Newsgroup
 
G

Gary S. Terhune

Anyway, my apologies to Vanguard. I realize, after thinking about it, that
his was a simple misunderstanding. My adding to your own insult was uncalled
for.
 
L

Luigi M Bianchi

Has everybody forgotten about InfoZip:

http://www.info-zip.org/

Get zip and unzip. They include command-line "free, portable, high-
quality versions of the Zip and UnZip compressor-archiver utilities that
are compatible with the DOS-based PKZIP by PKWARE, Inc."

/luigi
 
K

Ken Blake

Curt Christianson said:
Ken,

If you hadn't dated yourself the other night when you mentioned your age,
you sure did now! <rvvf>


Not a problem to me. I've never been one to hide or be ashamed of my age.
;-)

You want more dating? I started programming professionally in 1962! ;-)
 
C

Curt Christianson

Ken,

In all seriousness, I am impressed. Boy, have *you* seen some changes!

--
HTH,
Curt

Windows Support Center
www.aumha.org
Practically Nerded,...
http://dundats.mvps.org/Index.htm

| | > Ken,
| >
| > If you hadn't dated yourself the other night when you mentioned your
age,
| > you sure did now! <rvvf>
|
|
| Not a problem to me. I've never been one to hide or be ashamed of my age.
| ;-)
|
| You want more dating? I started programming professionally in 1962! ;-)
|
| --
| Ken Blake - Microsoft MVP Windows: Shell/User
| Please reply to the newsgroup
|
|
| > | > | On Sat, 18 Aug 2007 17:53:07 -0700, "(e-mail address removed)"
| > |
| > |
| > | > for history's sake, i'll mention that in the days of DOS, people
used
| > | > PKZIP and PKUNZIP .
| > |
| > |
| > | If we're talking about history, I'll mention that the "PK" of PKZip
| > | stood for Phil Katz, the man who invented the zip format and wrote
| > | PKZIP and PKUNZIP.
| > |
| > | --
| > | Ken Blake, Microsoft MVP Windows - Shell/User
| > | Please Reply to the Newsgroup
| >
| >
|
|
 
V

Vanguard

Gary S. Terhune said:
LOL!

"Better to keep one's mouth shut and have people think you're dumb
than to open it and remove all doubt."


You're mangling my quote, which is:

"It is wiser to remain quiet and let others ponder your ignorance
rather than open your mouth and remove all doubt."
 

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