Questions tagged [7zip]

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

"7z" or "7-Zip" may refer either to the open-source 7z compression container format or to the file name of the executable program of the same name that is the flagship implementation of the compression format. Both are GPL-licensed and under active development.

The 7z format is a compressed archive file format that supports several different data compression, encryption and pre-processing algorithms. The LZMA SDK 4.62 was placed in the public domain in December 2008. The latest stable version of 7-Zip and LZMA SDK is version 18.05. The MIME type of 7z is application/x-7z-compressed.

The 7-Zip program is an open source file archiver. 7-Zip operates with the 7z archive format, but can read and write several other archive formats. The program can be used from a command line interface, graphical user interface, or with Microsoft Windows shell integration. 7-Zip's development began in 1999, and it is actively developed by Igor Pavlov. It is related to a cross-platform port, p7zip. 7-Zip is free software distributed under the GNU Lesser General Public License (LGPL). It was the winner of the SourceForge.net 2007 community choice awards for "Technical Design" and for "Best Project".

7z has an open architecture, so it can support any new compression methods. Now the following methods are integrated to 7z:

  1. LZMA: Improved and optimized version of LZ77 algorithm
  2. LZMA2: Improved version of LZMA
  3. PPMD: Dmitry Shkarin's PPMdH with small changes
  4. BCJ: Converter for 32-bit x86 executables
  5. BCJ2: Converter for 32-bit x86 executables
  6. BZip2: Standard BWT algorithm
  7. Deflate: Standard LZ77-based algorithm
1441 questions
-1
votes
1 answer

How to undo extracted files by 7z

I was trying to install aws cli. I executed the following command curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" It downloaded to my directory awscliv2.zip Then I installed 7zip to extract files and used the…
hazartilirot
  • 195
  • 1
  • 2
  • 11
-1
votes
1 answer

How to extract multiple 7z file using Python?

I would like to extract multiple .7z files using Python. I've tried this, but it only extracted one file. I already put in a loop. Below is what I've tried. import os.path import glob from pyunpack import Archive os.chdir("E:/DATA/raw") for file in…
Cheries
  • 834
  • 1
  • 13
  • 32
-1
votes
1 answer

temp files in error with 7zip in powershell

I am currently strugling on a simple powershell script to archive files. I have thousand of old file in a folder and i want to archive them depending on the month/year of their creation date in archives named "YYYYMM". I use the code…
Erwan C.
  • 709
  • 5
  • 18
-1
votes
1 answer

Why does my CSV file gets corrupted when uploaded to Azure Blob Storage?

My Azure Function creates a CSV file, gzip it and then upload it to Azure Blob Storage with this code: var blobServiceClient = new BlobServiceClient("..."); var containerClient = blobServiceClient.GetBlobContainerClient("..."); var config = new…
Pine Code
  • 2,466
  • 3
  • 18
  • 43
-1
votes
1 answer

Display only certain part of Output/String Powershell

My current output to the command Get-Content -Path $logFilePath is the following: Transcript started, output file is \\\ 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Open archive: \\\.zip -- Path =…
-1
votes
1 answer

How do i compress multiple folders into zipped folders without creating subfolders?

I am trying to compress multiple folders (about 100) into individual zipped folders. I did this by making a .bat file like so - for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X" My problem is that it makes a folder inside the…
seg
  • 33
  • 5
-1
votes
1 answer

Recusively change directory and unzip files - linux

I have several compressed files that have embedded/nested compressed files within sub-directories using various compression formats, e.g. 7z, zip, tar. If I use the following approach (see below) to recursively uncompress them, all files are…
bbboomer
  • 27
  • 1
  • 1
  • 6
-1
votes
1 answer

One liner to extract archive files then delete them

I have a bunch of 7-zip files under a directory and I would like to extract all of them and then delete successful ones in bash. I wrote this: for f in *.7z; do if 7z e "$f" then echo "error $f" else rm "$f" fi; done and bash prompts: -bash: syntax…
fhcat
  • 971
  • 2
  • 9
  • 28
-1
votes
1 answer

C# - Unzip all files in directory and its subdirectories

I try to extract all ZIP archives in their respective directory / subdirectory to their respective directory / subdirectory. Example of the structure: -Root-Directory - File.txt - Fi.docx - Files.zip - TestEx.jpg - Example.png -…
Ferit
  • 558
  • 1
  • 5
  • 19
-1
votes
1 answer

Batch or Powershell Script to zip specific files

I have the following folder structure: -Videos -1. Summer summer.mp4 summer.srt summer2.zip -2. Winter winter.mkv winter.vtt - .. How can I create a batch or powershell script that results in the following folder…
Chris aa
  • 74
  • 5
-1
votes
1 answer

How to get RAR files volume index using 7-zip commands (or any alternative solutions)

I have some files (207 RAR files downloaded), and they don't have a proper name to refer each part/index, and if I want to extract them I should name them manually by checking volume index (from Properties section), and as you notice that can be too…
-1
votes
2 answers

How do I extract or read a csv file from 7z file using Python?

I uploaded a zip file to my EC2 Linux notebook, and extracted it, the extracted files were in 7z format rather than csv. So is there a way to extract from the zip file in a csv format or convert/read 7z into csv? I have already tried the existing…
-1
votes
1 answer

How to use powershell to quickly create an archive of specific files and directories and maintain strucuture

I'm using Compress-Archive as follows to create a zip file that contains 3 files and 2 directories (and all of their sub-directories) Compress-Archive -CompressionLevel Fastest -Force -DestinationPath ./My.zip -Path .\foo.ini, …
WhiskerBiscuit
  • 4,795
  • 8
  • 62
  • 100
-1
votes
1 answer

Powershell, create archive from first 100 files in a directory

I want to use PowerShell and 7zip to create an archive file in a directory where in name of file is number for example 1 and create archive from files 1 through 100. Then create a second archive from files 101 through 200, and so on to 100'000 (I…
-1
votes
1 answer

Java WAR file deployment issue

we are trying to replace a class file in the WAR using 7-zip. While redeploying the WAR in jboss server we are facing bean exception error.Any help on this... "org.jboss.msc.service.StartException in service…
user416
  • 516
  • 3
  • 12
  • 34