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

learn more… | top users | synonyms (1)

49
votes
4answers
120k views

How to split large file on Windows?

Is there a tool to split large text file (9Gb) into smaller files so that I can open it and look through? Anything usable from command line that comes with Windows (XP)? Or what's the best way to ...
14
votes
1answer
13k views

Create an archive from a directory without the directory name being added to the archive

I have the following folder structure root folder1 folder2 folder3 7za.exe I want to run the 7-zip command line tool to zip up all the files in folder1 to a zip file called ...
10
votes
8answers
12k 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?
0
votes
5answers
4k 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 ...
9
votes
8answers
18k views

How to make 7-zip do a whole bunch of folders

I got a bunch of pictures that I had to crop into 800x600 pixels. That was easily done, but now I have to upload them so the family can see them all. Thing is, this is 500MB in pictures. I decided to ...
8
votes
4answers
12k 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 ...
9
votes
3answers
12k 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 ...
9
votes
7answers
2k views

7-zip for linux

7-zip for linux, does such a thing exist? I mean actually 7-zip or a port, not another compression tool or command
30
votes
6answers
42k views

How do I use 7-zip to backup files, but exclude some directories

I would like to use 7-zip to backup a directory, but I would like it to exclude all directories named ".svn" (anywhere in the source tree). Does anybody know if this is possible and in that case how?
38
votes
3answers
45k views

How can I unzip a .tar.gz in one step (using 7-Zip)?

I am using 7-Zip on Windows XP and whenever I download a .tar.gz file it takes me two steps to completely extract the file(s). I right-click on the example.tar.gz file and choose 7-Zip --> Extract ...
17
votes
2answers
29k views

Is it possible to execute a file after extraction from a 7-Zip self-extracting archive (SFX) archive?

I'm try to make a compressed deploy-able application. Currently I'm taking a set of files that I've published from my IDE (Visual Studio 2008 - WPF published application) and compressing ...
4
votes
4answers
24k views

7-Zip CMD: Add current date to archive and include only the last modified folder in archive

I'm trying to create a backup script with 7-Zip. I have everything else done already, but these two issues are still blocking me. Firstly, I want to add a timestamp with a create date like this: ...
22
votes
6answers
3k views

How can I evaluate the best choice of archive format for compressing files?

In general, I've observed the following: Linux-y files or tools use bzip2 or gzip for distributing archives Windows-y files or tools use ZIP for distributing archives Many people use 7-Zip for ...
9
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 ...
6
votes
2answers
6k 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, ...
1
vote
2answers
4k views

How do I create seperate 7z files from each selected directory with 7zip command line?

FOR %i IN (*.*) DO 7z.exe a "%~ni.7z" "%i" Does the job for each selected file. However I've got tons of directories (with files inside them obviously) I need to pack. Say I have d:\dir1, d:\dir2, ...
8
votes
3answers
37k 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 ...
5
votes
2answers
4k views

Symbolic links and 7zip

I'm trying to compress a folder into a .7z archive. This folder contains symbolic links to some other stuff outside the folder (both directories and files). Apparently 7zip just archives the link ...
2
votes
2answers
218 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 ...
0
votes
1answer
6k 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?
11
votes
6answers
19k views

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. ...
30
votes
4answers
13k 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 ...
9
votes
8answers
26k views

How do I reassemble a zip file that has been emailed in multiple parts?

I received 3 emails each containing part of a zip file. The extensions end in .z00, .z01 and .z02. (Emailed as such to get around the typical 10Mb attachment limit per email.) I have put all 3 files ...
34
votes
5answers
3k 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?
18
votes
3answers
17k views

How can I install 7zip so I can run it from Terminal on OS X

I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
10
votes
2answers
2k views

NTFS alternate stream in compressed archive?

Does any of the major compressed archive formats in Windows (e.g. zip, rar, 7z) support NTFS alternate data stream?
7
votes
1answer
11k 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?
14
votes
1answer
10k views

How to create multipart 7zip file in Linux?

How can I create a multipart 7zip file in Linux using the p7zip console client? Many people referred me to it. My console app is 7-Zip [64] 9.13 beta Copyright (c) 1999-2010 Igor Pavlov ...
9
votes
3answers
6k views

7zip: how to extract to std output?

I have 7z 4.65 and am trying to extract a single file to standard output. The 7z command-line help says -so is the command-line parameter to extract to standard output, but when I try this: ...
5
votes
3answers
4k views

Do encrypted compression containers like ZIP and 7-Zip compress or encrypt first?

The discussion of "compress and then encrypt, or vice-versa" led me to ponder the following question: many compression containers, like ZIP, 7z, and rar support encrypting these containers. For ...
4
votes
4answers
3k 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
3answers
11k 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?
4
votes
3answers
3k views

Scheduled backup of certain directories in Windows 7

I'm using Windows 7 and I need to schedule a daily backup that does the following: The schedule needs to run daily at 7pm The backup needs to generate a compressed archive of selected backup ...
2
votes
1answer
3k views

Incremental backup with 7zip

I have googled and searched, but can't find the command that 7zip command line utility uses for making incremental backups. So can someone please share the command ? Thanks btw I found this link: ...
2
votes
1answer
5k views

How to extract 7z zip and have correct directory strucuture?

XXXhostXXX:temp XXXuserXXX$ ls -a dir1/ . .. a.txt b.txt XXXhostXXX:temp XXXuserXXX$ pwd /Users/XXXuserXXX/temp XXXhostXXX:temp XXXuserXXX$ 7z a -t7z dir1 dir1 7-Zip [64] 9.20 Copyright (c) ...
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: ...
1
vote
1answer
5k views

How to extract all zip files in subfolders using 7-zip in Windows 7

I have a large Windows 7 folder tree structure containing many zip files. These are single layer zip files (not zip within zip). What 7-zip command can I use to parse through this folder structure, ...
5
votes
2answers
987 views

Can the “copying” step from 7zip be sped up?

I use 7Zip to extract compressed files. I am currently working with a compressed 7GB RAR file that expands to 55.6GB. I understand the time it takes to unzip the file, but then I have to sit and ...
4
votes
4answers
4k views

Recursively unzip files where they reside, then delete the archives

I goofed up a setting on the backup software I use. Normally I would have the files from a network share get loaded into a spare drive, compressed into zip folders, then sent off to the offsite hub. ...
4
votes
2answers
4k views

Redirect 7-Zip's command-line output to /dev/null on Windows when extracting a .7z file

I have a command such as "C:\Program Files\7-zip\7z.exe" x foo.7z -y which will extract (with full paths) to the current directory. What it does that I don't want, though, is to spool out the ...
2
votes
2answers
720 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
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
2answers
1k 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 ...
1
vote
1answer
944 views

Include only *.cs files using the 7zip GUI

I highlighted a few folders in 7zip and wanted to add only the *.cs files from those folders into this archive. I can't seem to figure out what I would type in the "parameters" box to make this ...
1
vote
2answers
1k views

How to 7za file without specify archive name

Say have an executable target.exe, is there any way to compress this file into target.zip without specify archive name(output name) by using 7zip command line?
0
votes
1answer
422 views

Is it possible to recursively list zip file contents with 7 zip without extracting

Similar to this question I have a very large zip file which contains other zip files, folders, and files. I want to use 7-zip to extract a list of file names from it, recursing into subfolders and zip ...