I know that in a linux enviroment it is possible to zip a folde into multiple smaller zip archives as such:
zip -r -s 64 archive.zip FolderName/
But is there an equivalent option using powershell or commandprompt?
I know that in a linux enviroment it is possible to zip a folde into multiple smaller zip archives as such:
zip -r -s 64 archive.zip FolderName/
But is there an equivalent option using powershell or commandprompt?
If you want to create a multi-part zip archive you can give DotNetZip a shot.
This is how it works in C#
using (ZipFile zip = new ZipFile())
{
zip.UseUnicode= true;
zip.AddDirectory(@"Folder");
zip.MaxOutputSegmentSize = 100*1024 ; // 100k segments
zip.Save("MyFiles.zip");
}
Or if you can settle with 7zip, there is 7ZipPowershell that allows you to do just that:
PS> Install-Module -Name 7Zip4Powershell
PS> Compress-7Zip -Path . -VolumeSize 102400 -ArchiveFileName "C:\Users\me\Desktop\abc.7z"
PS: The segment size is in both cases in byte.