How to create zip file from command line in winxp without using any3rd party utility

H

hitesh

Hi ,

How to create zip file from command line in winxp without using any
3rd party utility? I have to compress a folder from command .

Regards,
Hitesh
 
M

Meinolf Weber

Hello Hitesh,

You can use the compress command from 2003 ressource kit:
http://www.microsoft.com/downloads/...69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

See -Z switch for MS-ZIP compression

Syntax:

COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]

Description:
Compresses one or more files.

Parameter List:
-R Rename compressed files.

-D Update compressed files only if out of date.

-S Suppress copyright information.

-ZX LZX compression. This is default compression.

-Z MS-ZIP compression.


Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
 
H

hitesh

Hello Hitesh,

You can use the compress command from 2003 ressource kit:http://www.microsoft.com/downloads/details.aspx?familyid=9D467A69-57F...

See -Z switch for MS-ZIP compression

Syntax:

COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]

Description:
Compresses one or more files.

Parameter List:
-R Rename compressed files.

-D Update compressed files only if out of date.

-S Suppress copyright information.

-ZX LZX compression. This is default compression.

-Z MS-ZIP compression.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!!http://www.blakjak.demon.co.uk/mul_crss.htm


How to create zip  file from command line in winxp without using any
3rd party utility? I have to compress a folder from command .
Regards,
Hitesh- Hide quoted text -

- Show quoted text -

Hi Meinolf ,

Actually i am using WinXP sp2 and this is not working on that. I
believe this is only for 2003.

It will be great if i can even create a cab file for this folder.

Thanks .
Hitesh
 
T

Tim Slattery

hitesh said:
Hi ,

How to create zip file from command line in winxp without using any
3rd party utility? I have to compress a folder from command.

Unfortunately, no. They didn't include a command-line interface for
the built-in zipper. There are free ones available, use Google.
 
J

jameshanley39

Hi ,

How to create zip  file from command line in winxp without using any
3rd party utility? I have to compress a folder from command .

Regards,
Hitesh

I see cab is fine too..

Regarding zip.. Just so you know.. there are 3rd party utilities that
run from the command line. That doesn't meet your original
specification.

In DOS/Win3.11, People used to use pkzip. pkzip -rp folder , or
pkzip -rp -ex folder. It is still around. Winrar was a shocker in
those days, running in DOS and having a GUI (Dosshell did, but it was
always an unusual thing). (it prob had a command line / CLI, as
well). Then Winzip came along with its semi-free GUI, and right-click
context menu, its friendly nag screen, perhaps around Win9X time.
Winrar is also popular now, and people largely stopped using pkzip.

Anything from the windows resource kit, is not built into windows.
It's not 3rd party, only as a technicality, that it is by MS !
 
H

hitesh

I see cab is fine too..

Regarding zip.. Just so you know.. there are 3rd party utilities that
run from the command line.  That doesn't meet your original
specification.

In DOS/Win3.11, People used to use pkzip.    pkzip -rp folder ,  or
pkzip -rp -ex folder. It is still around. Winrar was a shocker in
those days, running in DOS and having a GUI (Dosshell did, but it was
always an unusual thing).  (it prob had a command line / CLI, as
well). Then Winzip came along with its semi-free GUI, and right-click
context menu, its friendly nag screen, perhaps around Win9X time.
Winrar is also popular now, and people largely stopped using pkzip.

Anything from the windows resource kit, is not built into windows.
It's not 3rd party, only as a technicality, that it is by MS !

Well still nothing on this and i see many other threads on this but
noone getting success tried using rundll32 zipfldr.dll also but
nothing there also .
Anywayz is their any way to create cab file for a folder using command
line without any third party on winxp?
 
B

Bill Sharpe

hitesh said:
Hi ,

How to create zip file from command line in winxp without using any
3rd party utility? I have to compress a folder from command .

Regards,
Hitesh

Why must you compress using the command line?

You can use "Send to... Compressed(zipped) folder" by right-clicking a
file or files in Explorer. There's a thread in
microsoft.public.scripting.wsh titled "compress folder to a single file"
that provides a Windows Scripting Host file to do just that.

And third-party programs also exist, as other replies have indicated.

Bill
 

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