ZipFileSplitter is a PowerShell module that provides functions to split large ZIP files into smaller parts and to merge these parts back into a single ZIP file. This is especially useful when you need to send large files over email or other services that enforce file size limits.
- Split-ZipFile: Splits a specified ZIP file into multiple parts of a defined chunk size (default is 15MB).
- Merge-ZipPart: Merges multiple
.zippartfiles back into a single ZIP file.
-
Clone or Download the Repository:
git clone https://github.com/YourUsername/ZipFileSplitter.git
-
Copy the Module File:
Place the
ZipFileSplitter.psm1file in one of your PowerShell module directories or keep it in a folder of your choice. -
Import the Module in PowerShell:
Import-Module -Name "C:\Path\To\ZipFileSplitter.psm1"
Replace
C:\Path\To\ZipFileSplitter.psm1with the actual path where you saved the file.
To split a large ZIP file into smaller parts (15MB by default):
Split-ZipFile -InputZip "C:\Path\To\LargeArchive.zip" -OutputFolder "C:\Path\To\OutputFolder" -ChunkSize 15728640To merge the split parts back into a single ZIP file:
Merge-ZipPart -PartsFolder "C:\Path\To\OutputFolder" -OutputZip "C:\Path\To\MergedArchive.zip"Contributions are welcome! Please fork the repository and submit pull requests. If you find any issues, feel free to open an issue.