Commands for using standalone 7-zip to split and combine zip file

By | October 22, 2018

What is standalone 7-zip?

It is a single executable that can be used to zip and unzip files without installing 7-zip on a machine.

How to get standalone 7-zip?

Visit the page https://www.7-zip.org/download.html and download “7-Zip Extra: standalone console version, 7z DLL, Plugin for Far Manager”

Download 7-zip standalone version

Command to create a zip and split it based on a file size?

"C:\EXE_LOCATION\7za.exe" a -v2m "Release4.zip" "*.xlsm"

EXE_LOCATION = Full path of 7za.exe on the computer
a = create archive(=zip)
-v2m = split the file into 2MB
“Release4.zip” = zip output file name
“*.xlsm” = source file name(s) to zip

Command to extract files from splitted zip files?

"C:\EXE_LOCATION\7za.exe" e -o"C:\MY_FOLDER\" "C:\ZIP_FILE_LOCATION\Release4.zip.001"

EXE_LOCATION = Full path of 7za.exe on the computer
MY_FOLDER = Output folder where the unzipped files will reside
ZIP_FILE_LOCATION = Location of zip file to unzip
e = extract from zip file
-o = output directory
“C:\ZIP_FILE_LOCATION\Release4.zip.001” = first part of zip file

Vishal Monpara is a full stack Solution Developer/Architect with 13 years of experience primarily using Microsoft stack. He is currently working in Retail industry and moving 1’s and 0’s from geographically dispersed hard disks to geographically dispersed user leveraging geographically dispersed team members.