PC Review


Reply
Thread Tools Rate Thread

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

 
 
hitesh
Guest
Posts: n/a
 
      22nd May 2008
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
 
Reply With Quote
 
 
 
 
Meinolf Weber
Guest
Posts: n/a
 
      22nd May 2008
Hello Hitesh,

You can use the compress command from 2003 ressource kit:
http://www.microsoft.com/downloads/d...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,
> Hites



 
Reply With Quote
 
hitesh
Guest
Posts: n/a
 
      22nd May 2008
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/d...d=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
 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      22nd May 2008
hitesh <(E-Mail Removed)> 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)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
jameshanley39@yahoo.co.uk
Guest
Posts: n/a
 
      22nd May 2008
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 !

 
Reply With Quote
 
hitesh
Guest
Posts: n/a
 
      22nd May 2008
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?
 
Reply With Quote
 
Bill Sharpe
Guest
Posts: n/a
 
      22nd May 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Freeware file compare utility with command line interface? VanguardLH Windows XP General 0 3rd Mar 2009 02:37 AM
Command Line Utility to manipulate file names flahmeshess Microsoft Windows 2000 11 20th Nov 2005 12:32 AM
Command-line utility to create shortcuts ? Antoine Freeware 4 19th Apr 2005 03:30 AM
Command-line utility to create shortcuts ? Antoine Freeware 2 18th Apr 2005 05:11 PM
Looking for command line file purge utility Klaus Windows XP General 2 4th Nov 2004 09:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 AM.