7-Zip is a file compression archiving program

learn more… | top users | synonyms (1)

1
vote
1answer
69 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 ...
32
votes
5answers
2k views

Why is a 7zipped file larger than the raw file? [duplicate]

Possible Duplicate: Why doesn't ZIP Compression compress anything? I tried 7zipping an .exe file but it actually became larger. Is this the expected result?
0
votes
1answer
19 views

Compress / Zip a folder periodically but use minimal CPU?

Similar to this question except, I need it to run with minimal CPU on the background? Also, if there's a 7zip solution that will be nice.
2
votes
1answer
2k views

How do I add files from a directory to a .zip-File using the 7zip command line?

I am using the 7zip command line to zip-up files. How can I add all files and subdirectorys from a folder to a zip file (.jar archive file)? I used: 7zip.exe a -t7z file.zip C:\folder Thank you.
0
votes
1answer
2k 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
690 views

All of my executables are trying to open via 7zip. How can I put them back to normal? [duplicate]

Possible Duplicate: How do you associate the .exe file extension with a program in Windows? I recently booted my computer and all of the executable files have turned into 7zip icons. A ...
7
votes
3answers
3k views

How to disable the output of 7-Zip?

I use 7-Zip to compress files inside a batch file like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed I got the following output: 7-Zip 4.65 Copyright (c) 1999-2009 Igor ...
2
votes
2answers
4k views

Create 7-Zip SFX executable

I'm playing around with 7-Zip to create a self-extracting archive (SFX) executable. I followed the documentation, but I wasn't able to get any close. I'm using the 7-Zip 32 bit and the 7-Zip extra 32 ...
3
votes
2answers
4k 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?
0
votes
1answer
1k views

Unpack NSIS executable

I am trying to decompress a NSIS executable. With the GUI version of 7zip I am able to do this and the exe is listed as: Type = Nsis Method = LZMA:25 Solid = + With the command line version 7za I ...
1
vote
0answers
11 views

Possible to make a switchless install from a password protected archive?

I am using 7-zip to make a switchless install (method for doing so here and here). I would like to use a password protected archive to make said install to help prevent the average user from simply ...
0
votes
2answers
50 views

How can I achieve the maximum zip compression? [closed]

I would like to make a "standard" zip file which contain .jpg images. Which software and switches / options should I use to achieve the maximum compression ratio? I mean maybe I can make a solid ...
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
4answers
4k views

How to search the content of archives (7z)?

I am looking for a way to search the content of files inside of 7z archive without having to unpack the archive. I have many 7z archives with code inside them and I'd like to search them. Is there a ...
4
votes
3answers
9k views

Missing Explorer menu options for 7-Zip

Just reinstalling 7-Zip (v.9.2) to a new system, and I cannot find the context-menu option in Explorer. In the 7-Zip options there is no plugins tab (as detailed in the documentation) to change this ...
27
votes
4answers
10k views

What is the reason for 7-zip / WinRAR to first unzip files to “temp” and then move them to destination?

What is the reason for 7-zip / WinRAR to first unzip files to "temp" and then move them to destination? I do not see any advantage against just directly unzipping to destination. It is really ...
0
votes
0answers
44 views

Extract Java7u60 Server on Windows

I've downloaded the file server-jre-7u60-windows-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html and am trying to extract it with 7Zip. I ...
8
votes
4answers
13k views

Best Secure Encryption for Zip Files via Linux

I want to use highly secure encryption for zipped files via Linux/Ubuntu using a command line terminal, what is the best command line tool to get this job done? zip -e -P PASSWORD file1 file2 file3 ...
4
votes
3answers
8k views

How do I create separate zip files for each selected file/directory in 7zip?

This is the internal zip packer from Total Commander: However I want to use my 7zip packer. When I select 5 files, I get 5 separate .zip archives for each selected file. How do I do that in 7zip?
0
votes
0answers
13 views

7ZSFX Modified link creation error

Hi, I have been using the modified 7zsfx for a while (http://www.7zsfx.info/en/) now and have come across a problem I am re-compressing some of my old dos games and running them using dosbox. I have a ...
2
votes
2answers
958 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: ...
0
votes
1answer
102 views

7z in batch file with variables “Incorrect command line”

I'm trying to run the following batch file: set HH=%time:~0,2% set HH=%HH: =0% IF %time:~0,2% GTR 5 ( IF %time:~0,2% LSS 21 ( FOR /F "TOKENS=1 DELIMS=:" %%A IN ('TIME/T') DO SET HH=%%A XCOPY ...
1
vote
2answers
112 views

How to open corrupted 7z password protected file

I have encrypted a file using 7-Zip. When I try to open it, it is giving an error message of Cannot open file "<File/Directory location>" as archive I have saved my password and password is ...
0
votes
0answers
24 views

Why would my zipped file be the same size as the uncompressed files? [duplicate]

I am trying to zip 13 mp4s. The uncompressed versions of those files are 2.69GB. But when I zip them with 7zip, using Ultra compression level and any of the compression methods - including LZMA, the ...
2
votes
0answers
31 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 ...
0
votes
1answer
108 views

How to compress 14 GB of csv files with 7zip (minimizing space)?

I have to compress 14 GB of csv files with 7zip. What options should I use to achieve the highest compression? I have tried Ultra Level with both LZMA and PPMd compression method, obtaining results ...
0
votes
1answer
43 views

7-zip -v switch will fail to use cpu properly?

I have been using this script for years, back from when above 2 cores was a challenge in 7z and I had just offered myself a shiny i7: "C:\Program Files\7-Zip\7z.exe" u -m5=lzma2 -mmt=8 %1.7z %1 ...
2
votes
1answer
44 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 ...
13
votes
5answers
21k views

Extract 7z files with standard linux tools?

I know that you can extract .7z files with 7-zip. Is there another standard linux program that can do this? Maybe one of these tar bzip2 xz gzip I will add that bsdtar can do this, but is not ...
1
vote
1answer
26 views

Extracted files not recognized

I extracted a tar.gz file with 7-Zip. It worked fine, all the files and folders are now visible and have names, different size and so on, yet I cannot open them. And the icons are all the same - a ...
0
votes
0answers
27 views

Sequential Compression of [Text] Files (7zip and Windows)

This is with Windows 7. I have an iterative process, and on each iteration it produces a text file. What I want to do is compress this text file on each iteration to an archive. I'm using vb.net and ...
43
votes
2answers
38k views

7Zip - Command Line : Exclude folder(s) by wildcard pattern?

Any idea how to exclude a wild-carded path(s) from a command-line 7zip command? I'm doing something this: 7z.exe a -t7z archive.7z FolderToArchive\ -mx0 and would like to exclude any \bin\*.* or ...
6
votes
2answers
3k views

Multithreaded support in 7za

(I posted this first on serverfault, but then I realized it probably belongs here.) I'm trying compress a very large text file using 7za (p7zip) 9.20. The -mmt option doesn't seem to have any effect. ...
0
votes
1answer
40 views

7z a folder in chunks of 100MB and decompress

I am trying to 7z a folder (in chunks of 100MB) and add it to archive in Linux. Is the following command correct? tar cf - dir/ | 7z a -v100m -si dir.tar.7z How can I decompress the folder? I have ...
8
votes
2answers
34k 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 ...
9
votes
4answers
29k 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 ...
0
votes
1answer
72 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
0
votes
2answers
2k views

How to recursively extract all .tar and .tgz file zipped in a .tgz file using 7zip command line version

I'm using 7zip cmd line version in my app (written in Python on Win 7 box) to extract .tgz files. Although I'm using the -r switch, the .tar and .tgz subdirectories are not extracted. Can someone tell ...
0
votes
1answer
34 views

Move data with compression

I'm using win 7.I have disk ~2Tb which one I want to format so I need to move data from it to other disk, but the problem is that I have not another 2Tb disk and I think I can compress data(on the ...
0
votes
1answer
40 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
3
votes
1answer
2k views

7-Zip command line to zip all the content of a folder (without zipping the folder itself) [duplicate]

Possible Duplicate: Create an archive from a directory without the directory name being added to the archive I have a folder that I want to zip completely: MyFolder | |--- ...
0
votes
1answer
481 views

Extracting file using 7-Zip is taking too much time

I am trying to extract a ZIP folder using 7-Zip from the command line: 7z x "%BackupFileDestination%" -o"%ExtractDestinationDir%" It is taking too much time to do so. It is even hanging on a few ...
1
vote
1answer
127 views

7-zip -xr!*.bat is creating an empty archive with the batch files name

I am trying to exclude files from a 7-zip batch. The syntax is: for %%A in (*) do "C:\Program Files\7-Zip\7z.exe" a -tzip -xr!*.docx "%%A.zip" "%%A" -xr!*.bat The command is creating zip files ...
7
votes
1answer
9k views

7zip Add to Archive: How to exclude certain file types/extensions?

I want to archive a folder but want to exlude all media files. How do I leave out: *.avi *.flac when archiving?
2
votes
2answers
5k 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?
2
votes
1answer
293 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 ...
0
votes
1answer
89 views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
10
votes
8answers
10k 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?
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 ...
-1
votes
3answers
2k views

7z file manager crashed and left temp files behind

So I did a drag&drop extraction from 7z (windows), which creates temporary files (this was on purpose, as I was extracting to a network share.) Unfortunately, 7z crashed during this process and ...