Windows Batch Script: Pack Files into ZIP-Archive
Question by Sledge | 2015-01-24 at 16:16
I am searching for a way to automatically pack some files and/or folders into a zip archive.
I have thought about a batch script. Is there any simple method to construct such a script that is able to always automatically pack the same files when executing it?
Related Topics
Program in ZIP-Folder
Info | 0 Comments
Windows: Extract ZIP Archive without additional Software
Tip | 0 Comments
Windows: Create ZIP Archive without additional Software
Tip | 0 Comments
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
How to send E-Mails with EXE Attachment
Tip | 4 Comments
Website Performance: Deliver JavaScript and CSS files compressed to reduce loading times
Tutorial | 0 Comments
Put Windows via Script into Hibernation or Sleep Mode
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
The easiest way is to invoke a program such as 7Zip or WinRAR with your batch script - just use the program which you have already installed on your computer.
Example using 7-Zip
I will give you an example of how to control 7Zip via batch script. First, just write the following text into a file such as packt.bat and double-click on the file to execute it:
Important when customizing this file:
Basically, working with WinRAR is the same. Here, the command can look like that: "C:\Programs\Winrar\winrar.exe a -r target.zip file1.txt file2.txt".
2015-01-25 at 11:06