PDA

View Full Version : Can I Zip with cmd


helpme[_2_]
August 19th 07, 12:46 AM
In Explorer I can create a "Compressed (zipped) Folder".
Is there a way zip a bunch of files in cmd.exe?

Vanguard[_3_]
August 19th 07, 12:51 AM
"helpme" wrote in message ...
> 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).

Newbie Coder
August 19th 07, 12:53 AM
Help Me,

Winzip has a command line utility:

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

--
Newbie Coder
(It's just a name)




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

August 19th 07, 01:53 AM
On Aug 19, 12:46 am, helpme > wrote:
> 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.

Uncle Grumpy
August 19th 07, 02:28 AM
" > wrote:

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

ahhh... those were the good old days.

I think the aothor of those programs died from chronic alcoholism.

Vanguard[_3_]
August 19th 07, 03:17 AM
> wrote in message
ps.com...
>
> helpme wrote:
>>
>> 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 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.

helpme[_2_]
August 19th 07, 04:10 AM
Vanguard wrote:
> 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...

August 19th 07, 04:15 AM
On Aug 19, 3:17 am, "Vanguard" > wrote:
> > wrote in message
>
> ps.com...
>
>
>
> > helpme wrote:
>
> >> 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 did not come with DOS or Windows.

oh shut up

August 19th 07, 04:43 AM
On Aug 19, 3:17 am, "Vanguard" > wrote:
> > wrote in message
>
> ps.com...
>
>
>
> > helpme wrote:
>
> >> 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 .
>

<snip>

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

Gary S. Terhune
August 19th 07, 04:59 AM
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

> wrote in message
oups.com...
> On Aug 19, 3:17 am, "Vanguard" > wrote:
>> > wrote in message
>>
>> ps.com...
>>
>>
>>
>> > helpme wrote:
>>
>> >> 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 did not come with DOS or Windows.
>
> oh shut up
>

Ken Blake, MVP
August 19th 07, 05:13 AM
On Sat, 18 Aug 2007 17:53:07 -0700, "
> wrote:


> 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

August 19th 07, 05:14 AM
On Aug 19, 4:59 am, "Gary S. Terhune" <none> wrote:
> 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>

Gary S. Terhune
August 19th 07, 05:35 AM
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.

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

> wrote in message
ups.com...
> On Aug 19, 4:59 am, "Gary S. Terhune" <none> wrote:
>> 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>
>
>
>

Curt Christianson
August 19th 07, 05:41 AM
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

"Ken Blake, MVP" > wrote in message
...
| On Sat, 18 Aug 2007 17:53:07 -0700, "
| > wrote:
|
|
| > 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

Gary S. Terhune
August 19th 07, 06:27 AM
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.

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

> wrote in message
ups.com...
> On Aug 19, 4:59 am, "Gary S. Terhune" <none> wrote:
>> 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>
>
>
>

HeyBub
August 19th 07, 06:00 PM
helpme wrote:
> In Explorer I can create a "Compressed (zipped) Folder".
> Is there a way zip a bunch of files in cmd.exe?

No, but there are hundreds of free utilities to do the job:

http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLJ,GGLJ:2006-43,GGLJ:en&q=command+line+zip

Luigi M Bianchi
August 20th 07, 01:42 AM
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


"HeyBub" > wrote in
:

> helpme wrote:
>> In Explorer I can create a "Compressed (zipped) Folder".
>> Is there a way zip a bunch of files in cmd.exe?
>
> No, but there are hundreds of free utilities to do the job:
>
> http://www.google.com/search?sourceid=navclient&ie=UTF-8
&rls=GGLJ,GGLJ:
> 2006-43,GGLJ:en&q=command+line+zip
>
>
>



--
Luigi M Bianchi
Toronto, Ontario, Canada

Ken Blake
August 20th 07, 08:33 PM
"Curt Christianson" > wrote in message
...
> 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


> "Ken Blake, MVP" > wrote in message
> ...
> | On Sat, 18 Aug 2007 17:53:07 -0700, "
> | > wrote:
> |
> |
> | > 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
>
>

Curt Christianson
August 21st 07, 03:25 AM
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 Blake" > wrote in message
...
| "Curt Christianson" > wrote in message
| ...
| > 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
|
|
| > "Ken Blake, MVP" > wrote in message
| > ...
| > | On Sat, 18 Aug 2007 17:53:07 -0700, "
| > | > wrote:
| > |
| > |
| > | > 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
| >
| >
|
|

Vanguard[_3_]
August 21st 07, 04:37 AM
"Gary S. Terhune" <none> wrote in message
...
> 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."

Gary S. Terhune
August 21st 07, 04:49 AM
That one's been around for so long that it's gone through dialectical
changes depending on region. For my locale, my version is much better
understood. Besides, I like the double entendre of the word "dumb".

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

"Vanguard" > wrote in message
...
> "Gary S. Terhune" <none> wrote in message
> ...
>> 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."

Vanguard[_3_]
August 21st 07, 05:34 AM
"Ken Blake" wrote in message
...
>
> "Curt Christianson" wrote ...
>>
>> 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.

I still remember writing in machine code and having to use either
punch cards or tape with teletypes. I remember the Altair kits for
the joy of flipping paddles switches to code in the bits and then
latching them into memory to manually code your tiny program.
Remember when Heathkit showed up? Woohoo.

Vanguard[_3_]
August 21st 07, 05:36 AM
> wrote in message
ups.com...
>
> "Vanguard" wrote:
>> > wrote in message
>>
>> ps.com...
>>
>>
>>
>> > helpme wrote:
>>
>> >> 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 .
>>
>
> <snip>
>
>> 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 was mostly addressing your comment that PKZIP was free. When it was
first PKarc, it was free. When it changed to PKZip (because SEA sued
Katz over stealing their code from ARC so Katz had to rewrite his
program and decided to make money on his popularity), it became
shareware - which is not free but often allows users to steal the
product beyond the trial period.

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

When visiting http://www.winzip.com/, how is it possible to miss all
pricings, "Trial", and "WinZip is NOT Free Software"? If you go to
download sites, like download.com, it is listed as "free to try,
$29.95 to buy" or as trialware or shareware.

The only people that miss that it is commercialware are the people
that have no intention on buying the product (i.e., they know they are
stealing). Unlike many commercial products with trial periods, WinZip
doesn't (or it didn't when I last used it) cripple or disable itself
when the trial period ends, and that promotes users to steal.

> 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 never let any program that wants to usurp filetype associations do
so carte blanche. If prompted, I say no. Then I go into the
program's options and choose which filetypes that *I* want associated
to the newly installed program. I don't even have 7-zip associated
with .zip file. For me, 7-zip is not associated to any filetype.
Like you, I just use the context menu on an object (drive, folder, or
file) to perform a file archiving operation using 7-zip.

> I don't need all the alternatives to ZIP. ZIP and ISO are fine.

If your entire computing experience in files received from others or
the OS platforms that you use is limited solely to Windows then you
probably don't need more than .zip support. .rar shows up
occasionally even in an all-Windows environment. However, if you deal
with users of other OS platforms, like UNIX, or you use them yourself,
then you'll want support for .tar and .gz. Having support for more
archive/compression formats does nothing to make the program more
difficult. Nothing changes in the UI or options within the program.
I don't ever recall PKZip, WinZip, or 7-Zip changing their UI or the
available operations because of using a different archive format.
However, most of the Windows archive programs will handle the UNIX
formats but they still will only produce .zip files (i.e., they are
oriented to producing .zip files on Windows).

Plato
August 21st 07, 08:27 AM
helpme wrote:
>
> In Explorer I can create a "Compressed (zipped) Folder".
> Is there a way zip a bunch of files in cmd.exe?

..zip programs:

The original:
http://www.bootdisk.com/dostools.htm
More - pkunzip

Another, way more modern:
http://www.ultimatezip.com/download.htm



--
http://www.bootdisk.com/

Plato
August 21st 07, 08:27 AM
wrote:
>
> > 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 .

Interestingly, even tho I run a website that is just starting to support
Vista, I still use pkzip ver 2.04g [the last version as far as I know]
to zip all the files I have for download.

I suppose it's a case of "if it aint broke, dont fix it" as I've never
in 8 years ever had sombody complain to me that the .zip file they
downloaded from me didn't work.




--
http://www.bootdisk.com/

August 21st 07, 01:41 PM
On 21 Aug, 08:27, Plato <|@|.|> wrote:
> wrote:
>
> > > 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 .
>
> Interestingly, even tho I run a website that is just starting to support
> Vista, I still use pkzip ver 2.04g [the last version as far as I know]
> to zip all the files I have for download.
>
> I suppose it's a case of "if it aint broke, dont fix it" as I've never
> in 8 years ever had sombody complain to me that the .zip file they
> downloaded from me didn't work.
>
> --http://www.bootdisk.com/

Are you the guy that runs www.bootdisk.com then?

who wouldn't put a win xp 3 file boot disk on there because the
default boot.ini might not suit everybody.

The pkzip guy or people did think there is some issue, hence along
with useful utilities like pkzip,pkunzip, ziptoexe, there was
something like pkzipfix .

I sometimes had zip files that wouldn't work, and ran pkzipfix or
whatever it was called, on them, and it fixed them.

In a world of long filenames, it's easier to get around the directory
tree at a GUI - with clicks. The command prompt isn't so nifty getting
around the tree or pointing to places in the tree. Even with filename/
directory completion. Doskey macros can help to change to a long
directory like the profile, quicker, but they have to be set up.
Maybe it's worth it. Still, it's a shame, since the run dialog box is
nifty at bringing up the command prompt!

Ken Blake
August 21st 07, 02:25 PM
"Curt Christianson" > wrote in message
...

> Ken,
>
> In all seriousness, I am impressed.


I wasn't tried to impress you, just telling you again how old I am. ;-)


> Boy, have *you* seen some changes!


Yeah, a couple. ;-)

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup
>
> --
> HTH,
> Curt
>
> Windows Support Center
> www.aumha.org
> Practically Nerded,...
> http://dundats.mvps.org/Index.htm
>
> "Ken Blake" > wrote in message
> ...
> | "Curt Christianson" > wrote in message
> | ...
> | > 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
> |
> |
> | > "Ken Blake, MVP" > wrote in message
> | > ...
> | > | On Sat, 18 Aug 2007 17:53:07 -0700, "
> | > | > wrote:
> | > |
> | > |
> | > | > 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
> | >
> | >
> |
> |
>
>

Google