I am working on a power shell script. I have a 7z file which has 2 files inside it. I want to unzip this 7z file in the same directory where the 7z file is and get the full names of the 2 files inside the 7z. I have to do all this using power shell.
Currently my script is:
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
sz x -o$unZipFoldersPath $compressedfolder.FullName -r
I am getting the error
Cannot find archive
Is not the argument after -o is the output where we have to store our unzip file ?