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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

How to make a LZMA:23 archive?

Im trying to make a custom launcher to Minecraft which will be helping with mods. Problem is that the launcher is packed inside a LZMA archive. I can open that archive with 7-zip but I cannot modify ...
3
votes
1answer
27 views

Comparing 7z.exe and 7za.exe [on hold]

I understand that 7za.exe supports a smaller number of compression formats but I was curious what else may be different between the two exactly other than just that? Having some additional ...
2
votes
2answers
50 views

7zip - Use Windows Task Scheduler to zip a file that has timestamp of previous day

I have a web server that generates log files everyday, the log of the day will be automatically saved as Log.YYYY-MM-DD.txt (i.e. Log.2016-07-20.txt). Now I need to use Windows Task Scheduler to zip ...
3
votes
1answer
4k 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 ...
0
votes
1answer
13 views

Windows batch extract zip files, into folders based on zip name and combining similar zips

I have been searching for a way to bulk extract zip files in a directory and extract them into individual folders based on their zip file name. I found: Extract all Zip's in a directory (incl. ...
1
vote
1answer
17 views

Program or script to walk directory structure, based on my loop

I've the following loop and would like some help expanding it's functionality. for /D %d in (*.*) do "c:\Program Files (x86)\7-Zip\7z.exe" a -tzip "%d.zip" ".\%d\*" Currently, in a directory ...
0
votes
2answers
3k 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
6k 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=...
2
votes
2answers
4k views

7-Zip command line -p switch is not working according to the 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
1answer
23 views

How to make self extractor exe without close and cancel button using 7 zip?

I want to make a self extractor exe using 7zip. I dont want close and cancel button in the extracting window. I am able to make extractor but its without the progress dialog. command: COPY /Y /B ...
9
votes
5answers
19k 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 -...
3
votes
2answers
3k 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. ...
2
votes
3answers
3k views

7zip: Add files to new folder in archive via command line?

I am using 7zip for compressing a bunch of files. The files are in a directory structure, like this: MyDir\File1 MyDir\File2 MyDir\File3 MyDir\MoreFiles\File4 MyDir\MoreFiles\File5 I want to ...
-1
votes
0answers
29 views

How to create a.bat file to unzip multiple .7Z files?

I try to create a .bat file to extract (unzip) multiple 7Z files, each to separate folder, with the folder name equal to the name of the 7z file: file1.7z ---> in the directory file1 ...
2
votes
1answer
53 views

7z How to pass password and avoid prompt?

In Linux, I am using 7z to decrypt a *.7z encrypted file. Is there a way to pass in the password via pipe or any other method that can be automated? I tried echo password | 7z x archive.7z but still ...
2
votes
2answers
65 views

Can I open .zip files created with 7-zip without 7-zip?

I use 7-zip to create several archives with fixed size (512 Mb) from one big file. And they have strcuture: my_name.zip.001 my_name.zip.002 ... my_name.zip.005 My problem is that without 7-zip I ...
0
votes
2answers
31 views

Can I tell if folders in two different 7zip files are identical?

I have two 7zip files: A.7z and B.7z Is it possible to know if folder X in both archives are the same, and if not, how do they differ? I know I can simply extract both folders and compare them but I ...
1
vote
4answers
10k views

Extract all Zip's in a directory (incl. subfolders) with a .bat file or dos command

I want to extract all .zip's and .rars in a folder and its children The structure is like this: MAIN_FOLDER -A folder - a.zip -a.rar -B folder - b.zip ...
0
votes
3answers
36 views

Unable to extract Zip files with password

I am unable to extract zip files secured with password using the Windows built-in compression utility. It prompted me for password and after I supplied one, it kept complaining "wrong password" ...
0
votes
2answers
67 views

How can I quickly decompress a 1TB (5 million file) 7-Zip (7z) file stored on a NAS

There is a 7-Zip (7z) file (size: 1TB with about 5 million files inside) in a NAS device running in iSCSI mode. The 7-Zip file was compressed by the “only store not compress” mode. When the files ...
0
votes
4answers
13k views

7-Zip not working from the DOS prompt or command line?

I have 7-Zip installed, and it works from Windows, but not from the DOS prompt or command line: 7z e max_logs_can_messages.tgz Yields: '7z' is not recognized as an internal or external command, ...
4
votes
2answers
3k views

Synchronizing files using 7-Zip and the CLI

On the command line, 7-Zip has the command 'a' to "Add files to archive". But I want to synchronise the files instead. This is one of the main options in the GUI, but the CLI has disregarded it for ...
0
votes
1answer
35 views

Getting listing of files in split-volume 7zip archive

I'm using the following command to create a multi-part (each 1G) 7zip archive under Windows 10 (basically a full backup of my documents area): 7z a -r -v1g -bb -y \path\to\zips\xyzzy.7z . This ...
-2
votes
2answers
130 views

7Zip Zipping up directories

I want to use 7 zip to compress and archive folders but I want it to exclude existing .7z files if they exist and not duplicate them with a .7z.7z ext. I found this but it duplicates the already ...
0
votes
1answer
16 views

Compress only specific files from a folder while preserving folder structure

Say I have 1 main folder and 10 sub-folders, each with .avi, .html ,.txt and .srt in them. Now I want to preserve the folder structure but I want to only compress the .srt files into .7zip. Is there ...
0
votes
1answer
25 views

7-Zip Ultra - Does zipping multiple other 7-zip ultra compression files have any significant size difference?

I have a lot of files, mostly png and pdf, some svg, some various others, that need to be transferred. Multiple TB worth, files individually aized anywhere from a few kb to a few mb. The problem is ...
1
vote
2answers
33 views

How do I extract all archives in the subdirectories of this folder?

I have researched this title and the answer of the following CMD file was given: FOR /D /r %%F in ("*") DO ( pushd %CD% cd %%F FOR %%X in (*.rar *.zip) DO ( "C:\Program ...
16
votes
2answers
18k views

Add to a 7-Zip archive: How to exclude certain file types/extensions?

I want to archive a folder, but I want to exlude all media files. How do I leave out *.avi and *.flac when archiving?
7
votes
3answers
8k views

Extract recursively using 7-Zip

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, ...
16
votes
7answers
21k views

7-Zip doesn't ask me for a password for a ZIP file I encrypted while double-clicking it

I just tried to encrypt a folder with 7-Zip by a command line, choosing a password, but when double-clicking on the ZIP file, it shows me the files list without asking any password. Is there a way to ...
2
votes
1answer
44 views

Command line 7-Zip exclude

I have tried this many times, but not yet got it. How do I use 7-Zip to zip a directory without one directory inside other? Like: I have a folder /home/files/ and inside that, directory1/ and ...
32
votes
2answers
38k 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 ...
1
vote
0answers
8 views

Looking for command line values for an older (9.22 beta) 7zip

Better yet, is there a help file for the older 7zip utility? I want to test some PW recovery tools (build encrypted zip w/ known PW). This is probably trivial but starting from a 7zip.exe that has ...
1
vote
4answers
7k views

How to reduce the size of windows OS Iso file?

I have an Iso file of windows 8.1 pro with December '14 updates. The problem is the file is too big to be burned on a normal 4.7GB DVD , its around 4.8. Now is it possible to remove a few updates so ...
1
vote
1answer
44 views

Extract file from a zip inside another zip using 7z command line

I know this command: 7z e [archive.zip]-o[outputdir] [fileFilter] But the file I wanna extract is in a Zip inside another Zip for example: Archivo1.zip\Carpeta1\Archivo2.zip I use this line ...
1
vote
2answers
35 views

How can I compress multiple files to multiple zip using 7-ZIP?

for example I have one folder which contains below mentioned files: 001.txt 001.doc 002.txt 002.doc 003.txt 003.doc Continue.... I want all similar file names each in separate zip. e.g. 001.zip ...
0
votes
1answer
35 views

How to download/extract half a file

There is a Google Ngram file that I want to download which is like a Terabyte in size (after extraction). It's too big for me to download, but I don't need the whole file all at once. I could just ...
22
votes
3answers
74k 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 ...
3
votes
2answers
140 views

7zip - Create self-extracting Archive (sfx) with specified Extract path

Hello SuperUser Experts, Thank you for your help in advanced. I am trying to get the 7zip SFX archive to create an executable. I am able to get the executable. But when I run it, it give the ...
1
vote
1answer
16 views

Unzip 7zip to certain directory

I'm using this command line: 7z e d:\dev\projects\dbs\test\osc.data.db d:\dev\projects\dbs\test\osc.data.7z I think the first parameter should be the output, and the 2nd paramater should be the ...
0
votes
0answers
34 views

Issue with 7zS.sfx/7zSD.sfx

I'm trying to create my own installer. I have my file "7zSD.sfx (incorporated" in "lzma1600.7z" - Also try it with the "7zS.sfx" file incorporated in 7z920_extra.7z.), Config.txt and File.7z. My "...
1
vote
1answer
348 views

7Zip Cannot create symbolic link, access is denied to libhdfs.so and libhadoop.so

I am working on Windows 10 and trying to install Hadoop I downloaded it from here. When trying to extract Hadoop for files (libhdfs.so and libhadoop.so) I am getting the error. Cannot create ...
0
votes
1answer
27 views

Jpeg File Zipping does not compress at all

i'm trying to compress some jpeg photos, the total dimension is around 150MB, but when i try to zip it using the maximum compressing rate, i keep getting something around 150MB. I tried with Winrar ...
16
votes
3answers
36k 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
29 views

What version of tar does 7-zip use?

Does anyone know what version of tar 7zip uses for archiving/extracting? Is it gnu tar or bsd tar... or something else? I've googled around for an answer but can't find anything.
0
votes
1answer
68 views

List zip file's contents using 7zip command line with non-verbose machine-friendly output

Is there a way, in windows, to use 7z.exe's list command such that the copyright heading, file information, and column headers are skipped and you're left with just a terse machine-readable list of ...
0
votes
1answer
99 views

Zip epub using 7zip and issue with exlude file

I've many epub as folders need to convert it to .epub compressed so i created bash script to that ..which are compress the epub folder to zip then rename it to .epub using 7-zip btw i was try to use ...
0
votes
0answers
570 views

7zip: “There are data after end of archive”

When testing an archive file, I got this error: What does this mean, and does that implied that some parts of the archive file cannot be extracted? I use 7z 9.22 beta on Windows 7 SP1 x64 Ultimate....
0
votes
2answers
31 views

Can 7-Zip store the final archive to a custom path on a different partition?

I have a folder "D:/Tutorials/Exercise files" I want to compress "Exercise files" folder and put it on E:/Tutorials/ folder, that is on drive E: automatically from within the 7-zip program. Does 7-...
0
votes
1answer
38 views

How to get archive in cpio format with 7zip command line

"C:\Program Files\7-zip\7z.exe" a -tcpio initrd initrdcpio\bst mods\bstnet.ko I have tried this command, but got an error