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

learn more… | top users | synonyms (1)

4
votes
4answers
4k views

Can I open a Disk2vhd created VHD file with 7-zip?

I've created a VHD file of my C: drive, for backup purposes, using Disk2vhd 1.0. When I try opening the file using 7-Zip 4.65 (to view the contents) I get the error: "Can not open the file XXX as an ...
4
votes
2answers
527 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. ...
4
votes
1answer
3k 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 ...
4
votes
2answers
398 views

How can I specify the order files should be compressed in 7zip?

I have a set of files I would like to compress that I know to be repetitive and compressible, but 7zip chooses a non-optimal order to compress the files and fails to take advantage of their ...
4
votes
1answer
358 views

Can you move/copy a multipart 7z file while it still is compressing?

If you are compressing a 7zip archive and creating split archive, do you need to wait for the entire compression process to complete before you start copying the completed pieces out of the folder? ...
4
votes
2answers
4k views

file permission in zip/7z/rar?

I want to package my application for linux, I use zip/tar.gz/7z/rar to do the compress in Windows. Because I do the compress in Windows, so when I extract the package in Linux, the file permission ...
3
votes
3answers
5k 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? ...
3
votes
2answers
6k views

7zip command line options for more information when synchronizing

In the 7zip command line options, is there some argument that can make 7z output the files ignored/deleted from the archive too? (files ignored by the option -uq0) Example call: "C:\Program Files\7-...
3
votes
3answers
483 views

Would a 7z archive and a copy of the MBR be a complete disk backup?

Consider a disk with a single NTFS C: partition and Windows installed on it. If I were to make a 7z archive of the partition, and grab the MBR via some tool (then store it in a file), would this be a ...
3
votes
2answers
7k views

Extracting .exe executables and back again using 7-Zip?

I figured out, by accident, that I can extract .exe executables (what for?). Though the files make no sense whatsoever, how do I put those extracted files back into an .exe executable?
3
votes
2answers
10k views

How do I add a file to a zipped file when using 7-zip?

I used to be able to drag & drop and add a file to a zipped folder. Now I cant when using 7-zip. I upgraded to a new computer with windows 8 (nightmare) that has 7-zip and I would either like to ...
3
votes
2answers
19k views

Why does 7-zip.exe return “Access is denied” with these arguments/parameters?

In a batch file: START "7-zip" /D "C:\Program Files\7-Zip\" "7z.exe" a -o <F:> testArchive F:\test Or, alone on the cmd as: 7z.exe a -o <C:\users\user\Desktop> testArc C:users\user\...
3
votes
1answer
1k views

7zip - Command Line: how to set output path?

I want to compress all HTM files in D:\HTM\ to an archive called comp.7z which is created in D:\HTM\ directory, so I do the following: 7z a -o "D:\HTM" comp.7z "D:\HTM" and get an error, exactly as ...
3
votes
3answers
20k views

Extracting a Zip File with Japanese Filenames?

I'm trying to extract files from a zip file on Windows 7. The filenames are in Japanese, but they just look like éñé▀é─é±é─ü[é╓é┐éσèGòùé▄é╟é⌐üÖâ}âMâJâZâbâg20110423. They include a 3D model file and it'...
3
votes
1answer
3k 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 ...
3
votes
1answer
2k views

Update File in a subdirectory with 7z commandline

As the title says i want to update the file test.txt which is located in a directory called Test within a Archive called test.zip If I run 7z.exe u test.zip test.txt if puts the file in the root ...
3
votes
1answer
4k 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
2answers
8k views

7zip Add Operation Not Supported?

When I try to add a new file to a zipped archive, I get the message "Operation not supported." Anyone know how to fix this?
3
votes
1answer
210 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
270 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
1answer
3k 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?
3
votes
1answer
1k 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 ...
3
votes
2answers
78 views

7zip - Create self-extracting Archive (sfx) with specified Extract path

Hello SuperUser Experts, Thank you for your help in advanced. I am trying to get the 7zip SFX archive to create an executable. I am able to get the executable. But when I run it, it give the ...
3
votes
1answer
45 views

How easy is to recover uncompressed data if one sector is damaged in a 7zip archive?

I have around 100,000 small files which I backup every few weeks. Because they are really small, write speed to my external 2.5" USB 3.0 HDD is really slow. In 7zip, I compressed them using ...
3
votes
2answers
955 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
69 views

Alter .zip double-click action to work with .7zip (Windows 10)

Currently my setup has it so that all file extensions that are supported by 7zip are extracted on double click into a folder pertaining to the name of the archive. This works perfectly on all file ...
3
votes
0answers
141 views

Extracting an archive with millions of files with 7z is very slow

I have an archive with ~2 millions files, each of them being a few KB when uncompressed. The extraction is extremely slow (1 or 2 files per second). I see that 7z uses 100% of one CPU core. Is it ...
3
votes
0answers
227 views

Possible bug in 7zip - empty folders extract as empty files

I have a directory structure as follows: Main | |--empty_folder | |--folder | |--example.txt I'm zipping it using the .NET ZipFile.CreateFromDirectory method (but I doubt this has anything to ...
3
votes
0answers
77 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 ...
3
votes
3answers
2k 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
4answers
1k 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
5answers
9k views

How can I overwrite an existing file in 7zip?

I'm trying this: 7za.exe a "C:\Disc.7z" "C:\test" -v20000000b -m0=BCJ -bd But if I already have created the file C:\Disc.7z then 7zip doesn't compress anything and sends me this output: System ...
2
votes
4answers
11k views

Why should I prefer 7zip over WinZip in Windows environment? [closed]

I know Winzip is not free and 7-zip is free . Other than this is there any reason why I should use 7ZIP over Winzip for compression ? I am using Windows 7 .
2
votes
4answers
798 views

Does 7zip compression level affect decompression speed?

I have a directory that I would like to password protect and encrypt. I am using PeaZip to do this using 7zip compression. I'd like to use the 7z like a directory and hard drive space is not a concern,...
2
votes
3answers
131 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
1answer
13k 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
1answer
36 views

How, exactly, is ! meant to be used with 7-zip CLI parameters?

The -i and -x parameters of the 7-zip CLI interpet ! in a special way. Or at least it looks that way from their documentation. That documentation includes the following: Syntax -i[<...
2
votes
2answers
5k 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
3k views

Windows 7 Explorer Preview Pane for zip files

I was wondering if there is a possibility to add .zip file to the explorer preview pane (Windows 7 64 Bit). For example if a folder contains a .zip file i would like to see the content of the .zip ...
2
votes
2answers
8k 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
224 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
1answer
4k 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
4answers
496 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
877 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
8k 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
245 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
2k 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
9k 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
2answers
3k views

7zip: Add files to new folder in archive via command line?

I am using 7zip for compressing a bunch of files. The files are in a directory structure, like this: MyDir\File1 MyDir\File2 MyDir\File3 MyDir\MoreFiles\File4 MyDir\MoreFiles\File5 I want to ...
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 ...