A collection of scripts that do the same thing in different languages.
Zipping all folders in a directory to their own respective zip file.
ZipAllFolders.bat <path>
./ZipAllFolders.sh <path>
./ZipAllFolders.ps1 <path>
python ZipAllFolders.py <path>
<path>
is optional. The current working directory is used if left empty.
The script will prompt to remove the original folders,
then proceed to zip all folders and report the progress and file size.
The Batch script requires 7-Zip (7z.exe) to be in the environment PATH.
The Bash script requires the zip
command.
The Powershell and Python scripts use built-in modules to zip.