7-Zip is an open source file compression and archiving application

learn more… | top users | synonyms (1)

3
votes
1answer
3k views

Have PowerShell zip the contents of a bunch of folders, individual ZIP file for each folder

I would to have PowerShell zip the contents of a bunch of folders and get an individual ZIP file for each folder. Recently, I asked how to do this with a .bat file and an answer was provided. for /D ...
3
votes
1answer
128 views

Is there a way to compress files at different compression levels inside a single 7zip file? [duplicate]

Some files are compressed using their own compression scheme and some aren't. If I try Max compression on an already compressed file, I'll get 1%-2% better compression at most. The amount of time ...
3
votes
1answer
5k views

7-zip - how to use command line to include/exclude large list of files

I'm (trying) to develop a program to operate the 7-zip console program (7z.exe) via ShellExecute() and passing it a computer-generated list of files. Now what I want to do is this : I want to pass ...
3
votes
1answer
228 views

Cygwin creating multiple links to files inside tar?

I'm trying to create a .tar file in Cygwin: find . > tmpfilelist tar -cf tmp.tar -T tmpfilelist but when I open tmp.tar in Windows with 7-Zip there are four instances of each file: Name ...
3
votes
2answers
54 views

Create a .zip file that can be opened by PKZIP 2.50 with 7-zip

I need to create a .zip file that can be unzipped by a very old version of PKZIP - version 2.50. I am currently using 7-zip to try this, but I can use a different zip program so long as it has a CLI. ...
3
votes
2answers
941 views

Context Menu being created if you install 7-Zip or TortoiseSVN in Windows 7 while it works just fine in Windows XP

I've installed 7-Zip in XP and it creates a context-menu in Windows Explorer. But, in Windows 7 it doesn't. I don't know why. I tried it with administrator privileges, but nothing happened.
3
votes
1answer
257 views

Is there a way to make 7zip temporarly uncompress the whole archive when double-clicking on an exe?

In WinRAR, one feature which I like is the fact that you can set it to uncompress the whole archive in a temporary place, if you double-click on an .exe file inside the archive opened in WinRAR. ...
2
votes
4answers
890 views

How resilient is the .7z file format?

I'm intended to package up quite a lot of data in to archives so that I can store them using an on-line file storage service and to various local backups - the intention being that this will be fairly ...
2
votes
3answers
2k views

Why does a zip file appear larger than the source file especially when it is text?

I have a text file that is 19 bytes in size and having compressed the file using zip and 7zip, it appears to be larger. I had a read of the question on Why is a 7zipped file larger than the raw file? ...
2
votes
3answers
128 views

Where can I find 7z format adoption?

How widespread is this format? What archivers support it? I would like to replace zip files I create with 7z. But I'm afraid some people will have problems opening them. Edit: The main reason I want ...
2
votes
4answers
1k views

How to get 100% identical compressed files, for source files that only differ in creation date?

I want to be able to compress a file losslessly, and if the original file is identical to another user's file, I want both of our compressed files to match, even if the original file dates are ...
2
votes
2answers
3k views

How to zip multiple folders in 7zip?

I have a folder, lets say, MAIN. Inside this folder, there are many folders(say f1,f2,f2...) which has subfolders and files in them. Now I need to zip these folders(f1,f2,f3...) and their contents ...
2
votes
2answers
2k views

How can I get a content-listing of a 7z-archive under Linux?

This answer and this one suggest p7zip to work with 7zip-archives under Linux. I can see option for compressing and decompressing. But how can I get a content-listing of an archive, without ...
2
votes
2answers
6k views

Installing 7zip in CentOS - succeeds; but can't use it

I am trying to install 7zip to CentOS yum install p7zip installed it. And now running this returns Package p7zip-9.20.1-2.el5.x86_64 already installed and latest version But [root@root ...
2
votes
1answer
8k views

Batch the “Extract Here” command

I would like to batch the "Extract Here..." command on a complete folder. Every type of archive should be unzipped into the current folder with the name of the archive file. I have found some BATCH ...
2
votes
4answers
2k views

How is it that during extraction of a zip, I get two files of the same name in the same path?

I'm extracting a zip (self-extracting, but that probably doesn't matter) and for a few files I'm getting a dialog asking me if I want to replace a file that was already extracted with a file that's ...
2
votes
1answer
63 views

How do I zip a bunch of files with the same name with their paths?

I have many files with the same name in many folders throughout a project on a Windows PC. There are hundreds of thousands of source files in thousands of folders. They need to be sent out for ...
2
votes
4answers
162 views

What other archive formats save Date Created and Date Accessed?

7-Zip on Windows will save the Date Created and Date Accessed when compressing a .zip file, however it does not do this for its (referring to 7-Zip) native .7z format. Any Unix-based formats are ...
2
votes
2answers
622 views

7zip multiple files into multiple 7z files

I have a bunch of files in a directory and want to 7zip each one into its own 7zip archive So, for example, 1.csv, 2.csv, 3.csv will end up as 1.7z, 2.7z, 3.7z Is this possible with a .bat file in ...
2
votes
1answer
5k views

Identifiying a zip file that is not really a zip file

I have several files that a 3rd party program generated that have a .zip extension, however neither windows nor 7zip can extract it. In 7zip it does show me the file name of the uncompressed file ...
2
votes
1answer
202 views

What does the 7 stand for in 7-Zip (.7z )? [closed]

Is there any significance the number 7 in 7-Zip? I know it corresponds to the formating of the compression method and all of it's implied features, but what does the 7 mean?
2
votes
2answers
1k views

7zip to archive multiple files across many folders

I have a folder called lessons and 34 nested lessons in this folder course\ lesson1\updatedfile.html lesson2\updatedfile.html ... lesson34\updatedfile.html The lessons folder contains just the ...
2
votes
2answers
6k views

7-ZIP can't open pictures in Windows default photo viewer (Windows 7)

I updated 7-ZIP to the latest version 9.2, but when I try to open e.g. jpg from zip archive I always get a message "Windows Photo Viewer can't open this picture because either this picture is deleted, ...
2
votes
6answers
2k views

Mounting a .7zip file containing .tar

I have downloaded wikipedia in a compressed form. It is a .7z file, which contains a .tar file. In compressed form it is only 14 GB. If I uncompress it, it has 208 GB in it. And I don't have that much ...
2
votes
1answer
50 views

Increase number of items in 7Zip Extract to menu

I was curious on how to expand the number of recent items in 7Zip's "Extract files..." menu to include more recent items in the "Extract to" field. Right now, the "Extract to" field only remembers the ...
2
votes
1answer
2k views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
2
votes
2answers
239 views

Corrupt PNG files after unzipping

I downloaded 7-zip for Windows to extract .png files from .deb archives, but they turn out corrupted, showing a black background instead. Is there an alternative, working program for unzipping .deb ...
2
votes
1answer
962 views

Is it necessary to test the integrity of an archive if it returns “Everything is okay” when running 7zip via the command line?

Each time I compress a file via the command line 7zip is nice enough to return "Everything is okay". I know that I can test the integrity of an archive if I run the command 7z t archive.zip but is it ...
2
votes
1answer
1k views

Create a 7-Zip including only specified folder and excluding certain extensions. No scanning

I'm trying to create a 7-Zip archive that would compress a certain folder (only specified one!) while excluding a certain file extension. I've come up with this: "PATH-TO-7Z.EXE" a archive.7z ...
2
votes
1answer
2k views

Batch Extract with 7Zip

I receive a single zip folder with multiple zip folders inside it. Each individual zip folder contains one file. Is there a way to extract all of them in one step?
2
votes
1answer
2k views

7-Zip command line option to include only one kind of file recursively

I want to add any txt file under a given path using 7-Zip. Looking at the help I tried this: 7za a -ir!*.txt bla.7z c:\initial\path This ended up including every single file, txt or not. Looking ...
2
votes
1answer
375 views

How can I compress multiple files into three files per archive with 7-Zip?

I have 100 files that look like this: 001.txt 002.txt 003.txt 004.txt ..... 100.txt I want to compress them like this: 001.txt 002.txt ----> archive01.7z 003.txt --------- 004.txt 005.txt ...
2
votes
1answer
992 views

How can I updated an encrypted 7zip archive without losing encryption?

I created a 7zip archive with AES encryption. I included the option to encrypt the filenames. When I updated the file however I am no longer prompted for a password to open the file and can view the ...
2
votes
2answers
2k views

Setting WinRAR to exclude files with the exact filename I specify from being extracted from an archive

How can I configure WinRAR to exclude files with the exact filenames: thumbs.db or .DS_Store (ignoring case) from being extracted from an archive (all directory levels within an archive)? Files with ...
2
votes
1answer
1k views

Mass file extraction

System info: aggitan@moneque:~$ uname -a Linux moneque 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux aggitan@moneque:~$ 7z 7-Zip 9.04 beta Copyright (c) 1999-2009 ...
2
votes
3answers
2k views

programmatically extract tar.gz in a single step (on windows with 7zip)

PROBLEM: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: stackoverflow question for tar-gz. My question is almost the same, but ...
2
votes
2answers
1k views

Creating .xz with 7-Zip, claims insufficient memory (not true)

In WinXP 32bit with a Core i5 (dual core) and 4GB RAM, I'm trying to create an .xz archive from a 266MB log file using 7-Zip (GUI) on the "ultra" compression level (method: LZMA2, dictionary size: ...
2
votes
2answers
457 views

How to get a specified file extracted from a JAR file using a batch file?

I have a test.jar file on windows and I want to use 7-zip to get a certain file from outside of the archive, such as the "com/app/test/FILE.class" file. I only have access to java, 7-zip, and the ...
2
votes
2answers
2k views

Command line alternative to rar.exe with complex switches

I am searching for a command line alternative to rar.exe from winrar which supports the multitude of options that rar.exe does, preferably one that is open source. Specifically, I am searching for a ...
2
votes
0answers
20 views

Why does 7-Zip's compression speed lower over time?

I'm busy backing up my local server files, which amounts to just under 4GB of data in ~295000 files. I selected 7z as the format, and set the level to Store. The process started pretty quickly, but ...
2
votes
2answers
29 views

How do I pipe 7za output directly to psql?

I have a Postgres database dump in a .7z archive. I can extract it and import it with: 7za e dump.7z dump psql -h localhost db_name < dump but I'm just running out of disk space. What is the ...
2
votes
3answers
406 views

bat file behaves differently when run from windows scheduler

I have a .bat file S:\BACKUP_db\copytofileserver.bat, which takes some files and zip them to the network drive. Its first command is to delete the old backup at specific network path, then pack the ...
2
votes
0answers
53 views

Is it possible to make 7-Zip also extract all the other files when double clicking an exe?

With Winrar, when I double click an exe file in an archive, it also extracts all the other files in the archive, which is really handy for when the program depends on the other included files. I want ...
2
votes
1answer
1k views

7zip - self-extracting executables require admin privileges and trigger compatibility warning

When I create self-extracting archive executables for Windows with 7zip, the .EXEs trigger UAC on Windows7. And frequently after unzipping, I get this: I'm using commandline like: 7z a -sfx7z.sfx ...
2
votes
2answers
999 views

What does the number after 7-zip's -m switch mean?

7-zip has a command line switch to set the compression method, -m followed by a number, e.g. -m0=LZMA. What does the number (0 in the example) mean? Different numbers produce slightly different ...
2
votes
1answer
825 views

Automatically extract and rename extracted file according to archive's name

I have a bunch of zip files in a folder. Each zip file has a file in it named exp_1.txt. I would like to unzip each zip file and rename the extracted file from each zip file to what the zip file was ...
2
votes
0answers
594 views

Can you fix a corrupted 7z file?

So, I had a cd, with a scratch on it. The cd contained a 7z file. When I try to copy the file it gave me an error, so I used corrupted disk repair fixer and I managed to open the 7z, and view the ...
2
votes
0answers
708 views

Command line switching

I have read through some suggestions but I am just not technical enough to get this I think. I am a CAD designer and each file has 5 files associated with it. I have 3 sets of 5 files, and each set ...
2
votes
1answer
3k views

How to add files to specified folder in archive with 7zip command line

I have folders and files on my disk C:\builds\main.exe D:\components\a\testa.exe D:\components\b\testb.exe D:\components\c\testc.exe D:\dependencies\abc.dll Can I create an archive with 7z command ...
2
votes
1answer
447 views

How to give the 7z file the name of the current directory?

How to compress a directory with 7zip and give the archive file the name of the current directory? I use the following command line: "C:\Program Files\7-Zip\7z.exe" a -mx9 archive.7z -mhe=on ...