Questions tagged [7-zip]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
367 views

Cygwin creating multiple links to files inside tar?

I'm trying to create a .tar file in Cygwin: find . > tmpfilelist tar -cf tmp.tar -T tmpfilelist but when I open tmp.tar in Windows with 7-Zip there are four instances of each file: Name ...
wes's user avatar
  • 745
3 votes
0 answers
2k views

p7zip installs, but doesn't install? (7za: command not found)

I've uploaded it to /usr/local and used ./install.sh with ssh. I get the following: - installing /usr/local/man/man1/7z.1 - installing /usr/local/man/man1/7za.1 - installing /usr/local/man/man1/7zr.1 ...
user avatar
18 votes
2 answers
60k views

Extract and overwrite existing files

I am trying to write a batch script to extract files out of an existing ZIP file, into another folder on my desktop and to have the system not prompt me as to whether I want to overwrite the existing ...
Larry's user avatar
  • 203
2 votes
2 answers
873 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 ...
Dimen Shaw's user avatar
2 votes
0 answers
1k views

Command line switching

I have read through some suggestions but I am just not technical enough to get this I think. I am a CAD designer and each file has 5 files associated with it. I have 3 sets of 5 files, and each set ...
Larry's user avatar
  • 203
3 votes
2 answers
3k views

7zip multiple files into multiple 7z files

I have a bunch of files in a directory and want to 7zip each one into its own 7zip archive So, for example, 1.csv, 2.csv, 3.csv will end up as 1.7z, 2.7z, 3.7z Is this possible with a .bat file in ...
warsong's user avatar
  • 525
7 votes
2 answers
4k views

Extract archive here, autodetect subfolder

I use 7-Zip under Windows 7 to extract all kind of archives. The ever-running problem is that there is not a single way to handle subfolders. Some people create their archives like this (let's call ...
Laurent Couvidou's user avatar
0 votes
0 answers
853 views

Is it possible to recover partial compressed files?

Of the most popular compression methods (7z, RAR, Zip, GZip) is there any of them that allows to retrieve the uncompressed data from a partial file? Imagine there is only one compressed file, and it ...
Jader Dias's user avatar
1 vote
1 answer
2k views

Using 7-Zip from command line - name zip file with directory name

I know this has to be so easy, but I do not know how to do it. Any help would be appreciated. I want to name zip files with the directory name. Say I have a directory "Zip1" with files "Doc1.txt" ...
Lori Miller's user avatar
4 votes
1 answer
5k views

7-Zip many files from different folders?

I would like to add a large number of files with different names from different folders to a single 7-Zip archive using 7za.exe. This should be simple, but it turned out to be a major pain. I created ...
mafu's user avatar
  • 2,865
8 votes
2 answers
39k 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? ...
PeanutsMonkey's user avatar
2 votes
1 answer
3k views

Is it necessary to test the integrity of an archive if it returns "Everything is okay" when running 7zip via the command line?

Each time I compress a file via the command line 7zip is nice enough to return "Everything is okay". I know that I can test the integrity of an archive if I run the command 7z t archive.zip but is it ...
PeanutsMonkey's user avatar
2 votes
1 answer
24k 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 -m9=...
PeanutsMonkey's user avatar
38 votes
5 answers
21k 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?
IMB's user avatar
  • 5,503
4 votes
2 answers
10k views

Is it a requirement to concatenate multiple 7zip files in Linux before being able to uncompress them?

I generally use 7zip when on Windows and uncompressing multiple 7zip files. I have come across several articles noting that I need to concatenate multiple 7zip files to a single zip archive if I wish ...
PeanutsMonkey's user avatar
1 vote
1 answer
15k views

Error when extracting a 7zip archive to a specific output directory in Linux

I have a 7zip archive that I need to extract to another directory as opposed to the directory that the archive is located in however I get the error "Error:Incorrect command line". The command I am ...
PeanutsMonkey's user avatar
1 vote
1 answer
1k views

How to fail 7Zip when no files were added?

I use 7Zip in batch process under Windows OS. If I use "a" command (to add files to new archive file that doesn't exist) 7Zip still succeeds even if the file I explicitly specified to be added doesn'...
Joe Schmoe's user avatar
23 votes
2 answers
64k views

Unzip .rar from command-line with 7-Zip

On the Windows command-line, I can extract archives like this: 7za e somefile.zip I know 7-Zip supports .rar in the GUI, but can it be done in commandline mode?
Richard's user avatar
  • 231
2 votes
1 answer
14k views

Identifiying a zip file that is not really a zip file

I have several files that a 3rd party program generated that have a .zip extension, however neither windows nor 7-Zip can extract it. In 7-Zip it does show me the file name of the uncompressed file ...
Scott Chamberlain's user avatar
1 vote
0 answers
217 views

How would i make 7zip take a folder + subdirectories and individualy zip to bzip format each file in each sub directory

I want to know how to make 7zip take a folder + subdirectories and individualy zip to bzip format each file in each sub directory. if there is not a way then oh well.
Arttie's user avatar
  • 11
0 votes
1 answer
617 views

options in compression with 7z

I want to create an archive, through a program I am writing in C#, and later decompress it. The archive will contain folders from completely different locations, grouped on 3 major subdivisions. ...
Thalia's user avatar
  • 658
3 votes
3 answers
1k views

Would a 7z archive and a copy of the MBR be a complete disk backup?

Consider a disk with a single NTFS C: partition and Windows installed on it. If I were to make a 7z archive of the partition, and grab the MBR via some tool (then store it in a file), would this be a ...
Camilo Martin's user avatar
1 vote
2 answers
3k views

Is there a way to determine the original size or file count of a 7-zip archive?

I know that when I compress an archive with the 7za utility, it gives me stats like the number of files processed and the amount of bytes processed (the original size of the data). Is it possible, ...
Zac B's user avatar
  • 2,903
1 vote
2 answers
2k views

How do I compress a directory?

Hey guys I was wondering how would I gzip 7z tar or just regular zip a directory like this /var/Backups/Tones regular gzip won't do it because Tones is a directory and this site ss64.com/bash doesn't ...
The Nerd's user avatar
5 votes
2 answers
6k views

Create a 7-Zip including only specified folder and excluding certain extensions. No scanning

I'm trying to create a 7-Zip archive that would compress a certain folder (only specified one!) while excluding a certain file extension. I've come up with this: "PATH-TO-7Z.EXE" a archive.7z "C:\...
Amore's user avatar
  • 51
3 votes
3 answers
23k views

windows batch file 7 zip archive files using date range

I am currently running a batch file that backs up all my files created or modified within the past 24 hours using an old version of Winzip. I use 7 zip for a lot of archiving and would like to be ...
Gregg's user avatar
  • 31
1 vote
1 answer
4k views

Force Applications to use Teracopy

I use Teracopy everywhere I really like it and have found it to be stabler/faster/better than vanilla copy. However when using certain applications, namely 7zip for one, (I am certain there are more,...
Stingervz's user avatar
  • 191
0 votes
1 answer
2k views

Why my multiparted .tar unpacs just partly? (missing files)

I have 25 .tar files like: filename.tar.001 - filename.tar.025 When I want to unpack them with cat myarchive.tar.* | tar xvf - it does, but missing files: whole .tar is 1,2 GB, but unpacked files ...
Ultra's user avatar
  • 1
2 votes
1 answer
695 views

What does the 7 stand for in 7-Zip (.7z )? [closed]

Is there any significance the number 7 in 7-Zip? I know it corresponds to the formating of the compression method and all of it's implied features, but what does the 7 mean?
Chad Harrison's user avatar
28 votes
6 answers
41k 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. ...
Brian L's user avatar
  • 383
3 votes
5 answers
55k 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 ...
The JAVA Noob's user avatar
85 votes
5 answers
274k views

Different compression methods in 7zip: Which is best suited for what task?

So there are different compression methods in 7zip. Which method is best suited for what task? For example: One difference between LZMA and LZMA2 is I can choose all my cpu cores, whereas in LZMA 2 ...
Grumpy ol' Bear's user avatar
1 vote
3 answers
8k views

cmd: include date and time to filename

How can I get a filename YYYY.MM.DD_HH.MM.SS.7z? It should work with any regional settings! The question is not duplicating 7-Zip CMD: Add current date to archive and include only the last modified ...
noober's user avatar
  • 233
38 votes
3 answers
56k 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 ...
Michael Schubert's user avatar
4 votes
2 answers
2k views

How to print dir tree of a 7zip archive?

Before extract archive.7z, I always check what in side: $ 7z l archive.7z ...SKIP... 2010-01-01 00:00:00 ..... 25856 7367 jsloader/resource/gre/modules/source-editor-textarea.jsm ...
kev's user avatar
  • 12.8k
9 votes
2 answers
3k 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 ...
ray023's user avatar
  • 1,597
13 votes
2 answers
5k views

Strip path segment while extracting using 7zip?

Is there a way to extract a 7z archive that contains all it's files within a directory without creating this directory in the file system but still keeping the sub-directory structure of the archive (...
Gurken Papst's user avatar
  • 4,202
0 votes
1 answer
3k 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 ...
user avatar
44 votes
1 answer
162k 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 | |--- SubFolder1 ...
alex's user avatar
  • 441
3 votes
1 answer
5k views

Batch Extract with 7Zip

I receive a single zip folder with multiple zip folders inside it. Each individual zip folder contains one file. Is there a way to extract all of them in one step?
Bill Files's user avatar
4 votes
2 answers
2k 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 ...
fasteddo's user avatar
5 votes
2 answers
4k 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 07:...
Zombo's user avatar
  • 1
2 votes
1 answer
16k views

How do I use 7-zip to add a folder to an archive, including only files with certain extensions?

I know that the 7-zip command to add a folder to an archive is, e.g.: "c:\program files\7-zip\7z" a testArchive.zip c:\myFolder And the command to add only files of a certain extension to an archive ...
sigil's user avatar
  • 495
18 votes
5 answers
65k 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 -...
djangofan's user avatar
  • 2,889
51 votes
7 answers
212k 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 ...
Zombo's user avatar
  • 1
1 vote
3 answers
4k views

Zip Utilities with Queue Functionality [closed]

Are there any programs similar to 7zip or PeaZip that support a "queue" functionality? I have multiple large files to unzip, and I would like to add them all to one single queue and have them ...
norway-firemen's user avatar
0 votes
2 answers
3k views

.zip file created on Mac giving error in Windows 7 upon extracting

My friend compressed lots of photos into a zip archive using a MacBook, and uploaded it to Dropbox. I downloaded the zip and when I try to extract using WinRAR it gives this error, but extracts most ...
metal gear solid's user avatar
6 votes
2 answers
6k views

Passing a powershell variable as output directory in 7zip

I need to execute something like 7za e $file_path -oC:\Destination inside a powershell script, but substitute destination folder (C:\Destination) with a variable. Some like: 7za e $file_path -o$...
lalibi's user avatar
  • 183
7 votes
5 answers
27k views

What parameters are ok to pass to 7-zip .exe file creation while using the GUI

What parameters are ok to pass to the create archive wizard , in the 7-zip GUI, when you are creating a self extracting archive? The 7-Zip GUI has a field that allows you to type in multiple ...
djangofan's user avatar
  • 2,889
0 votes
3 answers
10k 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 ...
suffa's user avatar
  • 815