Skip to content

A collection of scripts to zip all folders written in Batch, Shell, PowerShell, and Python.

License

Notifications You must be signed in to change notification settings

MisaghM/Zip-All-Folders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zip All Folders license

About

A collection of scripts that do the same thing in different languages.
Zipping all folders in a directory to their own respective zip file.

Usage

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.

Requirements

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.

About

A collection of scripts to zip all folders written in Batch, Shell, PowerShell, and Python.

Topics

Resources

License

Stars

Watchers

Forks