/build/static/layout/Breadcrumb_cap_w.png

Extracting zip files via command line with 7zip

Extracting zip files via command line with 7zip


If you have problems with the native unzipping utility on the KBOX or just have other needs for unzipping in your scripts, this might be of help to you. 

First, download the below zip file:

7-Zip Command Line Version
http://downloads.sourceforge.net/sevenzip/7za920.zip

There's two files in that zip:
7za.exe
7z.dell

Second, just attach those two files to your script as a dependency.

Extract the files using this command line:

7za.exe x zipfilename.zip -y
7za.exe x zipfilename.zip -aos

-y Overwrites existing files
-aos skips existing files.

Here is the refference for the information above:

http://www.dotnetperls.com/7-zip-examples

This article includes some great examples and how-to for 7zip. 

 


Comments

  • http://net-informations.com/q/mis/7zip.html - gimmervan 9 years ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ