Under the folder
images\, I have the following folders:
I want a script that creates a
.zip for each of these folders, so I have
How can I do that?
Assuming you are on Linux you could use a Bash script like this:
This script will take the first argument as folder, in this case images, and recurse exactly one level deep to get all your folders (Usa, Italy and Japan) and zip them in the same place.
It will not delete old zip files or the source folders. Zip is smart enough to detect existing zip files and update them when run again. However, if you delete a file in the source folders it will not be deleted in the zip files. You might circumvent this behaviour by deleting existing files beforehand.
I assume this is Windows, as you are using backslashes.
Then run this within your
Or in a batch script:
You can use Winrar for this.
Select all your folders, right click and select
Click OK and you're done. If you want .zip files instead of .rar, just select