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

learn more… | top users | synonyms (1)

13
votes
1answer
13k 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?
9
votes
5answers
6k views

How can I control the order of files in a ZIP archive?

There are times when it is necessary for the files in a ZIP archive to be in a specific order (for example, I'm currently creating EPUBs, which require that the first entry in the ZIP be the mimetype ...
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 ...
1
vote
1answer
10 views

7zip : Set archive's LastWriteTime as old as the content

On windows, with 7za.exe v9.38, how can I set the archive's LastWriteTime (or CreationTime) same as the content? For example : I have a "toto.txt" file, created and last written on 01/01/15. 7za.exe ...
0
votes
0answers
29 views

Unable to extract prebuilt virtualbox with Windows 8

I went to this site, http://dev.modern.ie/tools/vms/windows/ to download prebuilt Virtual Box, with IE 10, Windows 8. The instructions say extract with 7-zip. When I try to extract, it asks for ...
1
vote
3answers
16k 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 ...
8
votes
4answers
15k 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 ...
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
2answers
238 views

how to open a zipped folder shown as zip.xml file?

I zipped some folders using winzip on my old laptop and copied to an external drive. The folders contain all types of files including xls, doc, ppt, etc. Now I am trying to open the zipped folders in ...
1
vote
0answers
25 views

Incremental backups with 7-zip

I am trying to set up an incremental backup with 7-zip after finding zip might not suit my needs fully/easily. My data is located in /media/Data/Work. For some reason it is not liking my code. I've ...
0
votes
1answer
4k 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 ...
0
votes
1answer
25 views

7zip: compress and copy to destination folder

I am trying to do the following: command line compress a file from C:\TestFolder\file.txt (source location) and on the same command or bat file put that compressed file in (a destination folder) ...
21
votes
3answers
39k 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 ...
1
vote
1answer
57 views

Batch file to create .7z archive for each file (in folder/subfolder) to a new destination (folder/subfolder structure)

I use a batch file to backup files to 7-Zip archives. It creates an archive for each file separately in the folder where the original file is. Works with sub folders. FOR /r %%i IN (*.*) DO ( ...
0
votes
0answers
17 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
3
votes
2answers
2k 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
2answers
18 views

What 7-zip command line syntax can I use to display errors only when creating a zip?

I do not want all the file names being read to scroll in the command window, but would like only problem files to appear. Better yet, I would like to direct error output to a file. My only alternative ...
0
votes
1answer
50 views

What happened to .gzip option in 7-zip?

I am not sure if this is just a coincident or not but I have recently upgraded my OS to Win 10. I noticed only now (after the upgrade) that the .gzip archive format is not available in 7-zip ...
1
vote
0answers
27 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 ...
0
votes
0answers
15 views

How to change context menu option for 7zip?

I work a lot with .gzip format and I am wondering if there is a way to change the default "Add to" format in the context from .zip to .gzip.
0
votes
2answers
608 views

7-zip archive with hard links?

I see that tar respects hard links $ ln clonezilla.iso test.iso $ tar cfvvJ archive.tar.xz *.iso -rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso hrw-r--r-- Steven 0 2012-03-25 ...
1
vote
0answers
18 views

7zip cli kills itself. Why?

I have 1 TB huge directory on debian/ext3. I need to 7zip it and then transfer it to another computer windows/ntfs. I use the following command, but in the end it says Killed. Any idea whats wrong? ...
-1
votes
0answers
27 views

Strange model of zip split files

I have some zip splited files, with random sizes, and named as: file 1.zip file 2.zip file 3.zip.... I try unzip this files with the programs winzip, winrar and 7-zip, but when i click in the first ...
5
votes
2answers
5k 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: ...
17
votes
3answers
54k 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 ...
10
votes
3answers
14k views

Extracting msi files using Linux

Related: How to extract files from MSI package? To extract the contents of a MSI installer using Linux, I can either use msiexec with wine or use 7zip. However, the latter does not preserve ...
-1
votes
2answers
157 views

Remove particularly tricky items from context menu

I've found various sources of info about removing these annoying things which I never use... but I haven't succeeded in getting rid of the following. (Avira-related:) - Scan selected files with ...
1
vote
0answers
15 views

Uncompress recursively using 7-Zip from command line

I'm attempting to uncompress several .gz files using 7-Zip from the command line. My files are in directories like so: Desktop/copyto/1/ file1.gz file2.gz Desktop/copyto/2/ file1.gz ...
0
votes
1answer
17 views

Want new directory while extracting archive file using 7zip

I Have Some files and Directories in archive directory Archive File_1 File_2 Directory_1 Directory_2 I want to create zip file of archive directory. But I do not want name archive zip Instead ...
1
vote
2answers
26 views

How to pass multiple files to zip in a single command using 7 zip?

I have one folder which will contain below mentioned files: destiny.txt destiny1.txt destiny2.txt destiny3.txt destiny4.txt destiny5.txt destiny6.txt destiny7.txt Out of which destiny1.txt, ...
1
vote
1answer
58 views

Compress large CSV FIle? (500MB)

I have a CSV-File which is 500MB of size. I am searching for a way to compress is to it smallest possible size. I actually received the file back then in a ZIP-Folder which was only about 50MB of ...
35
votes
3answers
36k 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?
2
votes
1answer
50 views

Why does 7-Zip's compression speed lower over time?

I'm busy backing up my local server files, which amounts to just under 4GB of data in ~295000 files. I selected 7z as the format, and set the level to Store. The process started pretty quickly, but ...
1
vote
0answers
126 views

7-Zip: Opening image from 7z archive produces error code 0x8000000a

I've tried encrypting a folder containing a text file and an image with AES encryption using the .7z format. When I enter the password to open the encrypted folder the two files are displayed. I can ...
1
vote
2answers
49 views

7z command line = 7z extract to

I have a dmg "winzipmacedition40.dmg" I'm trying to extract dmg from windows 7 I want to know how to "extract to" method via command line Result 1 Using Right Click file > 7z > Extract to ...
6
votes
1answer
78 views

7z: What *does* the -r flag do?

The man page for 7z simply says Do not use "-r" because this flag does not do what you think. The only documentation I can find basically restates the same thing. -r[-|0] Recurse ...
1
vote
1answer
4k views

7-Zip: Unsupported Compression Method while trying to extract a zipx file that consists of JPEGs

A zipx file I received consists of .csv files and .jpeg files. I used 7-zip to extract them. While the .csv files were sucessfully extracted, the JPEG files didn't. The error was something like this ...
1
vote
0answers
43 views

7zip only asks me for a password once when I open an encrypted file

I archived some files on my laptop and encrypted them using 7zip and the first time I tried to open a file, it asks for the password, but after that it never asks for a password... is there a way to ...
3
votes
3answers
6k 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 ...
0
votes
0answers
15 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 ...
6
votes
2answers
9k views

Unzip .rar from command-line with 7-zip

On windows command-line I can extract archives like this: 7za e somefile.zip I know 7zip supports .rar in the gui but can it be done in commandline mode? Thanks
2
votes
2answers
60 views

How to compress multiple files with similar names?

So I've got some 20 000 files that I want to compress and group by following logic: compress every file that have identical characters up to ( also include files that have no ( So the files are ...
1
vote
1answer
36 views

Is there a tool similar to IEpxress or 7Zip that can pass command line arguments to a dependency [closed]

I recently discovered IExpress and would like to use it to package arbitrary scripts in any language with their respective interpreters/libraries/dependencies. IExpress and 7zip can offer all of that ...
0
votes
0answers
152 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 ...
1
vote
1answer
86 views

7zip Batch Compression for a specific file extension in different folders

I've already learn how to batch compress my files as-is with 7zip but I have something more complex need on this issue. Maybe I can explain my needs with this scenario; I have a backup folder of my ...
0
votes
0answers
28 views

“recompress” a 7z archive inline

I have a rather large (~500GB) 7-zip archive. I originally made it when I had more space available, and did so at rather fast, low-compression settings. Now things are tight, and I'd like to try and ...
0
votes
1answer
28 views

Decompress files in subfolders to the same subfolder using 7-Zip

I have a set of subfolders with .gz files buried in them. I need to decompress the files and keep the directory structure the same. I have used for /f "usebackq" %i in (`dir *.gz /s/b`) do 7za x %i ...
0
votes
1answer
91 views

7zip command not extracting to specified output directory

7z x d:\migration\mongo\mongodb.7z o:f:\data *.* -r I'm using this command as part of a batch to extract the contents of a 7z file from one drive (D) to another (F). The folder structure is ...
2
votes
1answer
83 views

How to pass parameters in batch file and zip the file using 7z.exe?

I need to create a batch file as per below requirements 1) pass path1 & path2 while running the batch file exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt 2) Need to store these command ...
1
vote
4answers
522 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 ...