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
0
votes
2 answers

process zipping files hangs when called from cmd

I run something like this: string exec = @"/k" + @"7za.exe a -tzip " + name + ".zip \"" + name + "\""; processStarter ps.run(exec); startInfo settings: startInfo.WorkingDirectory = workingDir; startInfo.FileName = exe; …
wilk_u
  • 1
  • 3
0
votes
3 answers

c# create 7z archive, then Can not open file "name.7z" as an archive

I am trying to zip some folders. They have different paths, will not belong to the same directory. I tested the command line arguments that I would give, and it works, but I can't get it to work from c#: string destination = "some…
Thalia
  • 13,637
  • 22
  • 96
  • 190
0
votes
0 answers

7-Zip & Java - how do I get the value of percentage completed?

I wrote a Java code that sends files for compression using LzmaAlone.java. Sending one file is not a problem, but for sending numerous files I need some confirmation that the previous file finished compressing. I also need to create a progress bar…
Yossi Chen
  • 226
  • 3
  • 11
0
votes
1 answer

7-zip (7za.EXE) in C# to archive files of same name & store folder information

My software is supposed to collect files into a .zip or .7z archive using 7zip, but due to the nature of the software, there are a lot of files with the same name, but different directories…
Medic3000
  • 786
  • 4
  • 20
  • 44
0
votes
1 answer

Zipping files after TFS build is complete

I have a small problem with TFS. I am trying to zip files after the build is complete and send to the drop location. I am using the following command to call 7zip to zip the file. Command:
Frankie C
  • 349
  • 7
  • 21
0
votes
0 answers

using LzmaCompress to make an archive

I'm a lil bit confused with compression methods. I do know how to use this function, and it does output a tinier buffer, but how do I make an archive using the 7zip sdk, with the compressed data? i'm quite sure it is a question that is relevant to…
Gal Ben David
  • 410
  • 4
  • 10
0
votes
2 answers

Launching a command line application that launches another command line application never responds

When I run the following command from command line, I can run 7-zip as a remote user and extract a file to a network share: C:\PsExec.exe -u username -p password "C:\7z.exe" x -y -o\\network\extractedfiles\ C:\compressed.zip toextract.txt I am…
JSideris
  • 5,101
  • 3
  • 32
  • 50
-1
votes
1 answer

Create Postgres password protected backup from C#

I want to create a password protected Postgres backup from C# I tried next code but I think there is a more secure way: to pass backup directly from pg_dump to arhive without saving it on the disk and to add password form env variable like is done…
mrapi
  • 5,831
  • 8
  • 37
  • 57
-1
votes
1 answer

Compress a folder using 7-zip in Linux with Java

I have the following function in my code. public static void runExecutable(String filePath, String command, boolean commandLine, boolean wait) { InputStream inputStream = CommonMethods.class.getClassLoader().getResourceAsStream(filePath); …
ThePiGuy
  • 11
  • 5
-1
votes
1 answer

Batch Script to zip file using CMD batch file

I was trying to run the following script to zip each file to an individual zip file of its own. The code was executed without errors, but it did not generate any zip files. Could anyone let me know why? echo on for /f "tokens=3,2,4 delims=/- " %%x…
Sunnie
  • 25
  • 1
  • 7
-1
votes
1 answer

Python Compressed file ended before the end-of-stream marker was reached. But file is not Corrupted

i made a simple request code that downloads a file from a Server r = requests.get("https:.../index_en.txt.lzma") index_en= open('C:\...\index_en.txt.lzma','wb') index_en.write(r.content) index_en.close when i now extract the file manually in the…
Manu Add1
  • 3
  • 3
-1
votes
1 answer

How do I compress folders (to .7z) and protect it with a password with encrypting files names (using a .bat file)?

I want something like this: for [Folder Name1] archive and password protect using this password (123456) for [Folder Name2] archive and password protect using this password (789456) for [Folder Name3] archive and password protect using this password…
-1
votes
1 answer

How to extract .000 file type in python

How to extract them in python scripts by using shutil or somethings import os import shutil directory = os.path.join(os.getcwd(), "BDP Raw data") def extract(path,director,check): if check: shutil.unpack_archive(path, directory) …
-1
votes
1 answer

How to compress multiple directories into one 7z archive?

I'm using the following code to compresse two hundred directories into one 7z archive, but it didn't work well for me. for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X"
-1
votes
1 answer

extract 7z file on S3 using node.js

can someone suggest npm package for extract 7z file for node.js. I can see some npm package available for ZIP file but that does not work for the 7Z file. I'm basically looking to extract 7z password protect file on S3 and read the data from 7z…