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

learn more… | top users | synonyms (1)

0
votes
2answers
14 views

is there anyway to compress folder individually using 7zip?

This is not my question, but the person who had asked this voluntarily deleted the post. Since it was an interesting task, i figured it out. The OP wanted to zip each folder individually via batch ...
-1
votes
4answers
4k views

7z file manager crashed and left temp files behind

So I did a drag&drop extraction from 7z (windows), which creates temporary files (this was on purpose, as I was extracting to a network share.) Unfortunately, 7z crashed during this process and ...
1
vote
0answers
14 views

How do I pipe 7za output directly to psql?

I have a Postgres database dump in a .7z archive. I can extract it and import it with: 7za e dump.7z dump psql -h localhost db_name < dump but I'm just running out of disk space. What is the ...
1
vote
2answers
2k views

How do I add files from a directory to a .zip-File using the 7zip command line?

I am using the 7zip command line to zip-up files. How can I add all files and subdirectorys from a folder to a zip file (.jar archive file)? I used: 7zip.exe a -t7z file.zip C:\folder Thank you.
0
votes
1answer
3k 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 ...
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
2answers
300 views

Read x64 registry branch from 7-zip SFX Installer via PowerShell

I want my 7-zip self-extracting archive to run a PowerShell script after it extracts files. To do that, I use method described here: ...
14
votes
5answers
25k 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 ...
-1
votes
1answer
29 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 zipped ...
0
votes
2answers
552 views

How can I create a batch job (.bat) that zip a folder?

From 7zip I've downloaded their command line tool 7za.exe, and I have to following script: echo off cls set zip ="C:\7za.exe" set filename="%date%.backup.zip" set pathtobackup="C:\MyDocs" %zip% ...
0
votes
3answers
116 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 ...
0
votes
0answers
65 views

How to unpack rar archive with p7zip under Centos 7

I'd like to make my 7z command to be able to extract RAR archives. I have installed p7zip and p7zip-plugins packages from EPEL repository. However, if I try to extract a rar file like this: 7z x ...
8
votes
4answers
14k 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?
0
votes
0answers
21 views

How to modify files within mszip (cab) executable?

I can list and extract certain executable contents using 7z. It seems to be using standard compression methods. Path = test.exe Type = Cab Method = MSZip How can I modify files inside that ...
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. ...
1
vote
0answers
17 views

What archivers support symlinks on Windows? [closed]

I'd like to back up and restore directory trees that include symlinks created with "mklink /d" on Windows 7. Are there any free & open source archivers that support windows symlinks? winrar 5.1 ...
2
votes
2answers
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?
1
vote
0answers
35 views

7zip on command line: can I use both include and exclude switches?

Here's my directory structure (in Windows 8.1): parentdir\ child1\ child2\ grandchild1\ grandchild2\ grandchild3\ ... child3\ child4\ ... Using ...
10
votes
5answers
20k views

Missing Explorer menu options for 7-Zip

Just reinstalling 7-Zip (v.9.2) to a new system, and I cannot find the context-menu option in Explorer. In the 7-Zip options there is no plugins tab (as detailed in the documentation) to change this ...
0
votes
0answers
33 views

Linux equivalent settings for 7zip

I'd like to use the same settings as below (Win7) on Linux to compress files, but I fail to get equal compression results, for which I blame myself not correctly using 7za. So far, I have 7za a ...
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 ...
2
votes
4answers
143 views

What other archive formats save Date Created and Date Accessed?

7-Zip on Windows will save the Date Created and Date Accessed when compressing a .zip file, however it does not do this for its (referring to 7-Zip) native .7z format. Any Unix-based formats are ...
4
votes
3answers
4k views

What does the percent sign (% and %%) in a batch file argument mean?

I think I'm missing something because I can't seem to find what this means. Example: for /D %%A in (*) do "\7za.exe" u -t7z -m9=LZMA2 "%%A.7z" "%%A" That line was supposed to use a command line ...
2
votes
1answer
4k 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 ...
0
votes
2answers
30 views

how to disable 7 zip from opening normal applications folders and files?

So I've been having trouble with my 7 zip on windows xp. I don't know what i did, but suddenly all of my normal folders,applications and files have started opening in 7 zip,even though their not ...
0
votes
1answer
125 views

Extract Java7u60 Server on Windows

I've downloaded the file server-jre-7u60-windows-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html and am trying to extract it with 7Zip. I ...
9
votes
4answers
14k views

Best Secure Encryption for Zip Files via Linux

I want to use highly secure encryption for zipped files via Linux/Ubuntu using a command line terminal, what is the best command line tool to get this job done? zip -e -P PASSWORD file1 file2 file3 ...
7
votes
3answers
5k 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 ...
4
votes
3answers
140 views

Extract large archive with 7-zip

I have a 76 GB disk image that's split in 28 files (Foo.7z.001 to Foo.7z.028) in "Storage" format and I want to extract it into my D: drive (which has 523 GB available). I've tried all 7-Zip settings: ...
0
votes
5answers
5k 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 ...
1
vote
1answer
754 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 ...
0
votes
0answers
26 views

Fixing the 7-zip COM surrogate issue?

My favorite archiver 7zip is unable to open the pictures in Windows Picture Viewer. The creator Igor Pavlov Says: The Program1 (some photo file handler) calls another Program2 (windows photo viewer) ...
1
vote
1answer
35 views

7z from bash script won't exclude directories

I've encountered with kinda strange behaviour of 7z (or bash, I don't know yet.). With the following script: #!/bin/bash find /home/user -type f -name "*.pdf" | cut -c 10- > ...
1
vote
1answer
133 views

zip file (with spaces in the files name) to unzip and rename files and zip back

I'm trying to rename the contents of a zip file to match the name of the zip file with a batch file. This is exactly what I'm trying to do : ...
0
votes
0answers
95 views

Why does Firefox keep trying to download 7zip_14396_stf.exe and setup_tsv48ouvr.exe

When I start Firefox for the first time, two files try to download, but their download fails. I have searched to find out what these files are. The "7zip" file is from safe downloads, and it looks ...
0
votes
0answers
73 views

Extract and delete all zip and rar files in subfolders + rename if files in archive have same name

i have few thousands rar and zip files in folders and subfolders. I want to extract them, and if there are the same filenames, for example: dir1 -subdir1 archive.zip ...
1
vote
2answers
51 views

7-zip extras for Linux

I want to pack a folder containing various resources and executables into a single self-extracting file and execute a command after that, "setup.exe" for example. I've successfully accomplished that ...
2
votes
1answer
5k 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 7zip can extract it. In 7zip it does show me the file name of the uncompressed file ...
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 ...
1
vote
3answers
889 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 ...
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
votes
1answer
148 views

How to rename 7-Zip split files as name_00N.zip instead of name.zip.00N

On Windows, when I create .zip split files with volumes less than 20MB with a command like: 7z a name.zip files\* -v20M I get one or more files named name.zip.001, name.zip.002, etc. I need to ...
3
votes
2answers
6k 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
2answers
2k 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 ...
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 ...
0
votes
1answer
545 views

How do I zip a folder with 7-zip but not subfolders of that folder?

For instance, if I wanted to zip everything in My Documents, but not subfolders in My Documents, and I also did not know the name of each subfolder.
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, ...
7
votes
2answers
292 views

What does combining compression methods in 7z actually do?

The 7z command-line tool lets you specify multiple compression methods, e.g.: # 7-zip archive type, strongest (9) compression, methods PPMd, BCJ2, LZMA2 $ 7z a -t7z -mx=9 -m0=PPMd -m1=BCJ2 -m2=LZMA2 ...
2
votes
2answers
304 views

bat file behaves differently when run from windows scheduler

I have a .bat file S:\BACKUP_db\copytofileserver.bat, which takes some files and zip them to the network drive. Its first command is to delete the old backup at specific network path, then pack the ...