Page 1 of 1
I want to zip folder
Posted: 19 Apr 2015 08:17
by chinus
Hello,
I dont know the command for ziping in dos.
I want to zip folder.I cant use 7zip.
Thanks.
Re: I want to zip folder
Posted: 19 Apr 2015 08:22
by foxidrive
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.
Re: I want to zip folder
Posted: 19 Apr 2015 09:27
by npocmaka_
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
Re: I want to zip folder
Posted: 19 Apr 2015 22:41
by brinda
npocmaka_,
the zip/unzip part is wow
. thanks.