I want to zip folder

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
chinus
Posts: 1
Joined: 19 Apr 2015 08:13

I want to zip folder

#1 Post by chinus » 19 Apr 2015 08:17

Hello,

I dont know the command for ziping in dos.
I want to zip folder.I cant use 7zip.

Thanks.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: I want to zip folder

#2 Post by foxidrive » 19 Apr 2015 08:22

MSDOS has PKZIP.EXE but it is an external program. ZIP.EXE is a free alternative.

Windows does not have a native command to ZIP or UNZIP files from the command line, but it can be done using VBS and other scripting languages.

See here: viewtopic.php?f=3&t=6108 because your question is very vague.

npocmaka_
Posts: 516
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: I want to zip folder

#3 Post by npocmaka_ » 19 Apr 2015 09:27

I suppose you are not using dos but the command prompt/cmd.exe.

Here you find my investigation over the topic :

http://stackoverflow.com/questions/28043589/

Probably the zipjs.bat is the best option (I think this is most comprehensive attempt of using shell.application com object for zip operations that can be found).

you can zip a folder using it it like:

Code: Select all

call zipjs.bat zipDirItems -source C:\myDir\ -destination C:\MyZip.zip
Last edited by npocmaka_ on 20 Apr 2015 06:25, edited 1 time in total.

brinda
Posts: 78
Joined: 25 Apr 2012 23:51

Re: I want to zip folder

#4 Post by brinda » 19 Apr 2015 22:41

npocmaka_,

the zip/unzip part is wow :D . thanks.

Post Reply