I can compress files or folders in Windows from GUI by right clicking and selecting "Send to .. Compressed (zip) file..".
Is it possible to do same in batch file?
|
I can compress files or folders in Windows from GUI by right clicking and selecting "Send to .. Compressed (zip) file..". Is it possible to do same in batch file? | |||
|
feedback
|
|
I have very good experience using 7-Zip. It's open source and does an outstanding job of compression. Lots of formats and strong encryption if you need it. It has both GUI and command line versions. | |||
feedback
|
|
Your best option would be to head over to 7Zip.org, go to the download section and get the '7-Zip Command Line Version'. It supports most compression formats, is easy to use and free! A command line example to compress a bunch of files with the bak extension to ZIP format would be:
| |||
|
feedback
|
|
You can use compress.exe which is built into windows, but WinRar is free and has command line based tools which I would recommend. | |||||
feedback
|