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
Meinolf Weber - 22 May 2008 10:49 GMT
Hello Hitesh,
You can use the compress command from 2003 ressource kit:
http://www.microsoft.com/downloads/details.aspx?familyid=9D467A69-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 ,
>
[quoted text clipped - 3 lines]
> Regards,
> Hites
hitesh - 22 May 2008 12:29 GMT
> Hello Hitesh,
>
[quoted text clipped - 38 lines]
>
> - 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
Tim Slattery - 22 May 2008 13:35 GMT
>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.

Signature
Tim Slattery
MS MVP(Shell/User)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
jameshanley39@yahoo.co.uk - 22 May 2008 13:41 GMT
> Hi ,
>
[quoted text clipped - 3 lines]
> 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 !
hitesh - 22 May 2008 14:04 GMT
On May 22, 5:41 pm, "jameshanle...@yahoo.co.uk"
<jameshanle...@yahoo.co.uk> wrote:
> > Hi ,
>
[quoted text clipped - 20 lines]
> 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?
Bill Sharpe - 22 May 2008 16:59 GMT
> Hi ,
>
[quoted text clipped - 3 lines]
> 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