7-Zip is a file compression archiving program

learn more… | top users | synonyms (1)

4
votes
2answers
33k views

7-Zip command line: Extract silently/quietly [duplicate]

Possible Duplicate: How to disable the output of 7-Zip? I want to use 7z.exe from a command prompt to silently/quietly extract an archive. I do not want to use third-party scripts or APIs. ...
5
votes
2answers
8k views

7zip: How to exclude files (not file types) using an exclude list file?

I know you can create a text file containing a list of files and then tell 7zip to reference this file so that it can exclude them from the archive, but I cannot find the syntax for that. Can someone ...
2
votes
1answer
6k 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 ...
10
votes
1answer
1k views

How to do “legacy” ZIP compression with 7zip?

We have an old application that requires zip files to be "legacy" format. I would really love to get rid of the adware ridden WinZip and use 7zip. However, I don't know which compression options and ...
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 ...
3
votes
1answer
246 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
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?
1
vote
0answers
152 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 ...
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, ...
0
votes
2answers
1k views

Compress big files with 7-zip, and uncompress with WIndows XP WITHOUT 7-zip

I'm using the very latest release of 7-zip to compress some files from the command line on my Windows XP machine. All the small archives work fine... but the bigger ones... always give "invalid or ...
0
votes
2answers
1k views

How do I convert my existing zip files to 7z with 7-zip comand line?

I'd like to convert a couple thousand zip files to 7z, with maximum compression and multithreading enabled. Also in another place. Like c:\temp\file.zip to f:\converted\file.7z
4
votes
3answers
9k 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?
2
votes
1answer
425 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 ...
22
votes
6answers
2k 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 ...
1
vote
1answer
1k views

Convert .tar.gz/.tar.bz2 to .7z in batch?

How do I convert .tar.gz and .tar.bz2 files to .7z files using the command line?
27
votes
4answers
11k 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
6answers
17k 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. ...
1
vote
2answers
425 views

Is there any way to get portable apps to register in the Explorer context menu?

I am using more and more portable apps which make switching from computer to computer much easier. However for programs such as 7zip which makes sense really only if it is a choice in the context ...
4
votes
3answers
2k 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 ...
1
vote
1answer
831 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 ...
1
vote
1answer
837 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 ...
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 ...
4
votes
2answers
3k 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 ...
9
votes
4answers
31k 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 ...
4
votes
1answer
561 views

Define root folder with 7zip

I am using 7zip with this command tools/7zip/7z.exe a publish/Site.zip publish/Site/* When I do this, 7zip creates a zip file with a publish folder then a Site folder and then my files. I'd like ...
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 ...
4
votes
1answer
292 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? ...
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 ...
5
votes
2answers
2k views

If I compress a file in a .7z archive with password, is it undecryptable without password?

I'm just curious to know whether or not an encrypted file is really save in terms of decrypting if I compress (or just save) a file into a .7z archive with a password. If I use a strong and ...
2
votes
2answers
977 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: ...
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 ...
8
votes
4answers
11k 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 ...
7
votes
5answers
4k views

Is it safe to store my passwords in an encrypted .7z/.zip by 7-zip?

Here is what I do: Type in all kinds of passwords in an excel file (.xlsx) Zip it with a password by 7-zip AES 256 length > 8 combination of A-Z a-z 0-9 symbols different from ...
0
votes
3answers
3k views

How do I extract .7z files?

Or what do I do with them if not extract them?
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, ...
2
votes
2answers
5k 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, ...
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, ...
1
vote
1answer
2k views

How to specify relative path in 7-zip command line?

I like 7-zip and I needed it's command line today. I bumped into a problem. Is there a way to specify a path within archive when compressing? For example I have a file at C:\some_dir\my_file.txt. ...
0
votes
0answers
101 views

Comparing zip/compression utilities [duplicate]

Possible Duplicate: Best compression applications for Windows? I've used WinZip, WinRar, and 7zip for packaging and compression. I know the first two are payware, and the last is open ...
1
vote
4answers
1k 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 ...
0
votes
1answer
719 views

When extracting multiple self extracting .EXEs with 7-Zip, how do I specify to only overwrite if newer?

I have a bunch of self extracting .EXE files that I'm using 7-Zip to extract. I only want files to be overwritten with newer versions. The 7-Zip extract dialog only gives me the option to overwrite ...
2
votes
3answers
127 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 ...
5
votes
3answers
13k views

add password to existing zip file with 7zip

Is it possible to add a password to an existing zipfile with 7zip without going to all the trouble of unpacking it and re-packing it again?
2
votes
4answers
859 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 ...
4
votes
4answers
22k 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: ...
1
vote
1answer
707 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 ...
1
vote
2answers
810 views

“can't find specified sfx module” when trying to create self extracting file with 7zip

I am trying to create a self extracting file for Windows from Ubuntu 10.04 using 7zip. I tried these commands: 7zr -sfx7z.sfx a output.exe *.txt 7zr -sfx/usr/local/etc/7z.sfx a output.exe *.txt ...
2
votes
2answers
436 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
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 ...
7
votes
2answers
4k views

Make 7-Zip extract an archive directly to a directory

Whenever I extract an archive using 7-Zip, it performs a two step operation. First it extracts the contents of the archives to a temporary folder, then Windows copies the files from the temporary ...