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

  • Thread starter Thread starter hitesh
  • Start date Start date
H

hitesh

Guest
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
 
Re: How to create zip file from command line in winxp without using any 3rd party utility

Re: How to create zip file from command line in winxp without using any 3rd party utility

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

> 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
 
Re: How to create zip file from command line in winxp without usingany 3rd party utility

Re: How to create zip file from command line in winxp without usingany 3rd party utility

On May 22, 2:49 pm, Meinolf Weber <meiweb(nospam)@gmx.de> wrote:
> 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
>
>
>
> > 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- 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
 
Re: How to create zip file from command line in winxp without using any 3rd party utility

Re: How to create zip file from command line in winxp without using any 3rd party utility

hitesh <Hitesh.Tiwari@gmail.com> wrote:

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

--
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
 
Re: How to create zip file from command line in winxp without usingany 3rd party utility

Re: How to create zip file from command line in winxp without usingany 3rd party utility

On 22 May, 10:34, hitesh <Hitesh.Tiw...@gmail.com> wrote:
> 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 !
 
Re: How to create zip file from command line in winxp without usingany 3rd party utility

Re: How to create zip file from command line in winxp without usingany 3rd party utility

On May 22, 5:41 pm, "jameshanle...@yahoo.co.uk"
<jameshanle...@yahoo.co.uk> wrote:
> On 22 May, 10:34, hitesh <Hitesh.Tiw...@gmail.com> wrote:
>
> > 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 !


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?
 
Re: How to create zip file from command line in winxp without usingany 3rd party utility

Re: How to create zip file from command line in winxp without usingany 3rd party utility

hitesh wrote:
> 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
 
Back
Top