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

learn more… | top users | synonyms (1)

0
votes
1answer
5k views

Incorrect parameter error when using 7-zip from the command line in Windows

I am running the following command: 7z.exe a -t7z -m9=LZMA2 test.7z test.txt However, I get this error: System error:The parameter is incorrect. The error only occurs if I use the -m9=LZMA2 or ...
1
vote
1answer
27 views

True Crypt Alternative For Encrypting Drives

I have Windows 7 Pro and as such, bitlocker won't work for me. I have some sensitive information which I have locked with an AES-256 key in a 7zip folder, but I would like to encrypt my entire drive ...
1
vote
2answers
3k views

7-zip command line -p switch not working according to help page

I want to be able to automate the encryption of the file type .pcapng in a windows batch script. My current problem is that I get an error when extracting the encrypted file saying something along the ...
0
votes
0answers
12 views

7zip is creating solid .zip files. Cannot add/remove/overwrite to .zip files ad-hoc

I'm using 7zip as an archive creation tool. .7z files may be created as solid or nonsolid files. .zip files are supposed to be inherently nonsolid. I have ~5GB of hierarchal folder/file structure ...
12
votes
8answers
21k views

Why doesn't ZIP Compression compress anything?

A 398MB directory was only compressed to 393MB using 7Z and Normal ZIP compression. Is this normal? If so, why do people continue to use ZIP on Windows?
10
votes
6answers
17k views

7-zip & Windows 7: Make “Extract to <folder>” default on double-click

I'm trying to find a way to make the action you can perform from the context menu, "Extract to <folder_same_as_file_name>" the default action when double-clicking the file instead of simply ...
0
votes
0answers
275 views

How I can identify the packer which was used for creation of some crapware installer bundles (setup.exe)

A lot of so called "freeware" bundle installers contains one or more unwanted disgusting crapware components like the evil ask toolbar or other similar hexadecimal stuff. Is it possible to identify ...
0
votes
0answers
19 views

How do I fix 7-Zip's default localization for its shell integration?

7-Zip installed itself in my native language. I managed to change the language of the 7-Zip program via its UI, but its shell integration is still in my native language. Is there any way I can ...
4
votes
2answers
248 views

How to unzip a zip file to a folder but avoid duplicate folders?

I think you all know that: you're getting a zip file and you don't know whether it contains all files in a folder or only the files. In order to not get a messed up directory, I never use "Extract ...
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
135 views

How to hide error dialog box in 7zip?

I am using "C:\Program Files\7-Zip\7zG.exe" -y x -pmypassword "D:\Myfile.rar" -o"D:\Extracted Files\" for extracting a file encrypted with password. Now if 'mypassword' is not the correct password ...
1
vote
4answers
90 views

Can 7zip remove empty directories after extracting an archive?

I have a 7zip archive that has several files/folders that I want to extract to a specific place. I've simplified the example to make it minimal, complete, and verifiable. -I don't want to maintain ...
0
votes
0answers
26 views

How does “Word Size” affect compression?

In 7 Zip when adding a folder to an archive there is the option to change the Word Size. How does this word size affect compression, in particular the final size of the zip? I noticed that changing ...
0
votes
0answers
8 views

7zip - Encrypting and compressing each file in a folder while maintaining directory structure [duplicate]

Say I have a directory structure like this: - main folder - folder 1 - file 1.txt - folder 2 - folder 3 - file 2.txt - file 3.png - file 4.txt - file 5.jpg I'd like to ...
7
votes
2answers
12k views

Extract a certain file from an archive with 7-Zip from the command line

If I have an archive, for example, some.zip that contains one or more files, how can I extract only one file (I know the name of the file) with 7-Zip from the command line in Windows?
0
votes
0answers
23 views

List zip file's contents using 7zip command line with non-verbose machine-friendly output

Is there a way, in windows, to use 7z.exe's list command such that the copyright heading, file information, and column headers are skipped and you're left with just a terse machine-readable list of ...
7
votes
4answers
16k views

How do I enable multi-threaded LZMA2 using 7-zip 9.20 on the command line?

How do I enable multi-threaded LZMA2 using 7-zip 9.20 on the command line? I know this is normally done with the -t option like so: "-tzip" . How do I do this with LZMA2? I tried -tlzma and ...
2
votes
1answer
28 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 ...
7
votes
3answers
29k views

7-Zip command line to extract a folder from an archive

I'm using the 7-Zip commandline to extract a ZIP archive called abc.zip which is an archive with a folder called 'zipper' with three text files in it (a.txt, b.txt, and c.txt). My problem is when I ...
0
votes
1answer
4k views

Unzip a multi-file zip archive in freebsd

I created a multi-file zip archive of some files using 7zip on Windows to allow more easy uploading to my server. I now want to unzip this archive on the server, but I get this error: [user@host ...
2
votes
1answer
12k 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
2answers
837 views

unzip command line to sync destination folder

Is there a way to unzip a .zip to a folder and sync the contents of that folder with the contents of the .zip? I know you can do an -u(pdate) option that will update the folder with newer files, but ...
1
vote
2answers
1k views

Unzip a specific subfolder in an archive with the 7-Zip command line version

I want to unzip an ZIP archive, but just a subfolder in it. Example structure archive.zip: -rootfolder --subfolder ---subsubfolder I just want to unzip subsubfolder with 7-Zip (preferably). How ...
9
votes
3answers
4k views

How to prevent 7-Zip encrypted zip file passwords from being stored on the hard-drive?

I've encrypted a folder with 7-Zip 9.20, specifying 256-bit AES and a password, and the .zip file was created. But then, when I clicked on the zipped file, to my surprise, PeaZip 5.1.1, which was the ...
0
votes
0answers
460 views

Unzip .gz file in windows batch script using 7zip

I have 7 zip installed on windows machine. I have to extract .gz files into .txt files. I am not able to find a suitable command to do that. I tried below : 7za e ...
0
votes
0answers
903 views

How to unpack rar archive with p7zip under Centos 7

I'd like to make my 7z command to be able to extract RAR archives. I have installed p7zip and p7zip-plugins packages from EPEL repository. However, if I try to extract a rar file like this: 7z x ...
0
votes
0answers
46 views

Dry run test the final file size of a rar or 7z file via terminal?

Is there a way of seeing the final file size (so I can determine how much space saving) of a zip file, preferably a rar or 7z file. I'm on a mac so ideally I'd like to do it via the Terminal. I've ...
4
votes
2answers
932 views

7zip filename encoding problems

I have problems extracting files from 7zip archive with non-ascii symbols in filenames. I have identical versions of 7z on two computers, which differ only by the system locale. If I compress on one ...
4
votes
4answers
24k views

7-zip commandline How To archive with subdirectories? Or, how to KEEP folder structure while archiving

I have a bunch of files like this: C:\G\G1\35antique-shop.mp3 C:\G\G2\35antique-shop.mp3 C:\G\G1\09saguri.mp3 C:\G\G2\09saguri.mp3 edit1: I just wanna know how to KEEP folder structure while ...
14
votes
5answers
11k views

Is there a way of replacing the default 7-Zip icons?

I like 7-Zip a lot - it's my compression utility of choice on Windows. I have just one problem with it: it's butt ugly. I'm really kind of reluctant to install it on my fresh Windows 7 system because ...
1
vote
0answers
184 views

How to make a split archive for DVD storage where single files are extracted from the set without needing all the DVD's

I'm getting ready to 7z/rar/whatever 1125 files (About 300GB) into a split archive with each piece being 4,700,372,992 bytes. The idea is that I can put each split onto a DVD+R that will fill the DVD ...
3
votes
0answers
72 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 ...
4
votes
3answers
13k views

7-zip cannot open file on double click

I have installed 7-Zip on my machine and associated it with serveral archive file types. When double clicking an archive (so far I have tried .zip, .7z and .bz2 files), a message box pops up telling ...
3
votes
2answers
15k 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 ...
0
votes
1answer
656 views

Compressing bigger than 1GB files seems not to work

I tried my best to compress some videos, about 1.4GB each. I tried to compress them separately, "tarring" (using tar) them and then compress, everything. I'm on OS X Lion and I did try the ...
1
vote
0answers
30 views

7-Zip: Empty tar file created

Using 7-Zip portable i created a tar file containing a folder which also contains numerous files and folders (200mb+). When i open the tar file it is empty, but the size of the tar file is exactly ...
16
votes
4answers
19k views

How to do “Files to store without compression” in 7-zip?

Is there any way to selectively prevent certain file types from compression in 7-zip, like in WinRAR? I'm trying to compress a huge folder (many gigabytes), and I don't want the already-compressed ...
0
votes
0answers
20 views

How to completely password protect a zip file [duplicate]

I have 7-Zip and Total Commander installed - both can create ZIP files with password protection, but it's applied only to files inside, opening of the ZIP file itself happens actualy without the ...
1
vote
5answers
19k views

How to compress a JPG image File

I am trying to send an email with an image attachment. But the image size is 40MB and the attachment size can only be 25MB. How can I compress the size of the image so that I can send it via Email?. I ...
15
votes
7answers
17k views

7zip doesn't ask me for password for a zip I encrypted while double-clicking it

I just tried to encrypt a folder with 7zip by command line choosing a password but when double-clicking on the zip file, it shows me the files list without asking any password. Is there any way to ...
0
votes
1answer
116 views

7za.exe: Add files to subfolder in archive

7za a -t7z -mmt -mx9 -y Include.7z .\Include\* The above command adds the files to the 7z archive, but what if I want them in a custom subfolder? For example Files\ inside .7z
0
votes
2answers
116 views

How can I extract multiple 7zip archives to folders with the same names in Linux?

I have about 300 7zip archives, each with several files in them, and no directory structure inside. I need to extract all these archives to folders that match the respective archive. Example: ...
7
votes
3answers
7k views

7 zip extract recursively

I have several folders, and within each folder, there are zip files. I want to run a command line order to recursively go through every folder and extract in place every archived file that it finds, ...
2
votes
1answer
29 views

Command line 7zip exlude

I have tried this many times but not yet got it. How to use 7zip to zip directory without one directory inside other. Like: I have a folder /home/files/ and inside that, directory1/ and ...
18
votes
3answers
63k views

What are the best options to use when compressing files using 7 Zip?

I often have to gather log files and upload them to a central server (Owned by another company). The central server has a size limit of the file, so I am trying to create the smallest file possible ...
13
votes
4answers
45k views

What settings to use when making 7zip files in order to get maximum compression when compressing PDFs?

What settings to use when making 7zip files in order to get maximum compression? I'm compressing PDF documents containing scanned images. I'm thinking about using LZMA2, but I don't know what to set ...
0
votes
1answer
39 views

7zip tries to compress files and folder outside of the path

I use the command line of 7zip, 7za, to compress a folder, on Windows web server 2008 R2. 7za.exe a -tzip -r %nome_file% "C:\inetpub" I expect it to compress everything inside the folder "inetpub, ...
0
votes
0answers
100 views

7zip: “There are data after end of archive”

When testing an archive file, I got this error: What does this mean, and does that implied that some parts of the archive file cannot be extracted? I use 7z 9.22 beta on Windows 7 SP1 x64 ...
1
vote
3answers
252 views

Windows 10 changing .zip file association

I have 7-zip installed and it hasn't changed the default file associations. I've changed the associations for .rar and .7z, but I can't find a way to change .zip. I looked in Default Programs\Set ...
1
vote
1answer
35 views

How to hide the Contents of a 7-Zip SFX Archive?

I've just Created a 7-Zip SFX Archive containing my Test Results. But whenever I open the File.sfx.exe with 7-Zip from the Context menu as Open Archive, I directly get the SFX Contents. I want my ...