These scripts create one ZIP file for each direct file or subdirectory in a selected folder. Every archive uses the ZIP store method (compression level 0), so its data is not compressed.
ZIP files are written to the _zip_output subdirectory of the source folder. That directory is skipped automatically, so it is safe to run either script again.
.\zip-items.ps1If the execution policy blocks the script in the current session:
powershell -ExecutionPolicy Bypass -File .\zip-items.ps1You can supply the path in advance and choose F, D, or B when prompted:
.\zip-items.ps1 -Path 'D:\data'Optionally, skip the prompt with -Mode File, -Mode Directory, or -Mode Both.
chmod +x zip-items.sh
./zip-items.shOr provide the path in advance:
./zip-items.sh '/path/to/data'The Linux/macOS script requires the zip command. For example, install it with sudo apt install zip on Debian/Ubuntu, or brew install zip when it is missing on macOS.
F: create ZIP files only for direct files in the source folder.D: create ZIP files only for direct subdirectories; empty directories are retained.B: process both direct files and subdirectories.