In this tutorial, we will learn to unzip a .zip file from the command line by using 7Zip software.
Note: we will discuss here two scenarios –
Scenario 1: If you have installed version 7-zip on your system. ( win 10)
Scenario 2: or by using the cmd version of 7zip software. (cmd version)
Let’s do it together, it is very simple to do, only single command we need to run from the command line.You can create a .bat file and call it from your program.
cmd command : 7Z x “source zip file path” -o” target folder path to extract zip file”
Let’s discuss Scenario 1: If you have installed 7-zip on your system.
*********************************************************
find the installed location-?
source zip file path:
target file path:
Let’s discuss Scenario 2: we are using the command line version of 7zip software.
*********************************************************************
we can download the lightweight command line version of 7zip from the below link: https://7-zip.org/download.html
I hope you found this tutorial helpful, please consider giving thumbs up and hit subscribe button to motivate me.