7-Zip is a file compression archiving program

learn more… | top users | synonyms (1)

0
votes
1answer
47 views

Cannot unzip with zip command line

I am having difficult unpacking a zip to a specific directory. I am trying to get all contents of subdirectory of the zipped file and not the parent directory. This is parent directory within zip ...
0
votes
2answers
1k 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 ...
0
votes
1answer
26 views

Move data with compression

I'm using win 7.I have disk ~2Tb which one I want to format so I need to move data from it to other disk, but the problem is that I have not another 2Tb disk and I think I can compress data(on the ...
9
votes
4answers
24k 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 ...
0
votes
1answer
21 views

7z commandline: test archive and only show failures?

What is the easiest way to get only the failures from 7z when testing an archive for integrity? Looking at the command-line options, there seems to be no verbose or non-verbose option (i.e. there ...
0
votes
1answer
2k 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 ...
3
votes
1answer
2k 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 | |--- ...
13
votes
4answers
18k 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 ...
0
votes
1answer
444 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 ...
1
vote
1answer
36 views

7-zip -xr!*.bat is creating an empty archive with the batch files name

I am trying to exclude files from a 7-zip batch. The syntax is: for %%A in (*) do "C:\Program Files\7-Zip\7z.exe" a -tzip -xr!*.docx "%%A.zip" "%%A" -xr!*.bat The command is creating zip files ...
7
votes
3answers
2k views

How to disable the output of 7-Zip?

I use 7-Zip to compress files inside a batch file like this: ...\right_path\7z a output_file_name.zip file_to_be_compressed I got the following output: 7-Zip 4.65 Copyright (c) 1999-2009 Igor ...
7
votes
1answer
8k 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?
2
votes
1answer
2k 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 ...
2
votes
2answers
4k 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?
24
votes
4answers
9k 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 ...
1
vote
1answer
76 views

7zip - self-extracting executables require admin privileges and trigger compatibility warning

When I create self-extracting archive executables for Windows with 7zip, the .EXEs trigger UAC on Windows7. And frequently after unzipping, I get this: I'm using commandline like: 7z a -sfx7z.sfx ...
0
votes
1answer
48 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% ...
9
votes
8answers
9k views

Why doesn't ZIP Compression compress anything?

A 398MB directory was only compressed to 393MB using 7Z and Normal ZIP compression. Is this normal? If so, why do people continue to use ZIP on Windows?
1
vote
2answers
981 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 ...
-1
votes
3answers
1k 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 ...
38
votes
2answers
35k views

7Zip - Command Line : Exclude folder(s) by wildcard pattern?

Any idea how to exclude a wild-carded path(s) from a command-line 7zip command? I'm doing something this: 7z.exe a -t7z archive.7z FolderToArchive\ -mx0 and would like to exclude any \bin*.* or ...
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, ...
5
votes
2answers
13k views

7-Zip command line to extract a folder from an archive

I'm using the 7-Zip commandline to extract a ZIP archive called abc.zip which is an archive with a folder called 'zipper' with three text files in it (a.txt, b.txt, and c.txt). My problem is when I ...
1
vote
3answers
63 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 ...
3
votes
2answers
4k views

Extracting .exe executables and back again using 7-Zip?

I figured out, by accident, that I can extract .exe executables (what for?). Though the files make no sense whatsoever, how do I put those extracted files back into an .exe executable?
6
votes
2answers
3k 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 ...
0
votes
1answer
31 views

7zip, Extract to a folder as default in the GUI

I am using 7zip for the first time coming over from WinRAR but its missing an important feature for me. I want to be able to extract my files to a folder like so: C:/Downloads/file.zip press extract ...
1
vote
3answers
5k 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 ...
1
vote
1answer
913 views

Create an archieve with current date and time in file name using 7z command line

Today I lost my whole Far Cry 3 save game suddenly. So now I want to backup it's save game folder automatically on a certain period of time using windows task scheduling. I want to include date and ...
8
votes
8answers
18k 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 ...
4
votes
2answers
63 views

How can I specify the order files should be compressed in 7zip?

I have a set of files I would like to compress that I know to be repetitive and compressible, but 7zip chooses a non-optimal order to compress the files and fails to take advantage of their ...
2
votes
1answer
128 views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
0
votes
0answers
56 views

How to open corrupted 7z password protected file

I have encrypted a file using 7-Zip, now when i try to open it is giving error message as "Cannot open file "" as archive". I have saved my password and password is correct, but it is unable to open ...
4
votes
4answers
20k 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
2answers
5k 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 ...
1
vote
1answer
57 views

Command line 7Zip to create archive without extension

If I specify full extensionless result path 7zip adds one corresponding to the type of created archive. How can I make it name the result file exactly as I have specified in command line argument?
0
votes
1answer
443 views

Why doesn't 7-zip appear in the contextual menu in Windows Explorer for MATLAB's .mat files after installing MS Office?

I use MATLAB and after installing MS Office 7-zip doesn't appear any more in the contextual menu when trying to zip some .mat files: http://youtu.be/uJvSC4oCes8. How can I solve it?
6
votes
7answers
8k views

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

I just tried to encrypt a folder with 7zip by command line choosing a password but when double-clicking on the zip file, it shows me the files list without asking any password. Any other alternative ...
0
votes
0answers
67 views

Can't extract really long file name with 7-zip

I have scoured this page which seems to be the only info I can find on extracting really long file names. Although the examples in this page deal with compressing, I would think the same principles ...
1
vote
1answer
94 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: ...
1
vote
2answers
56 views

7zip: Extract archive(s) which take up >= 50% of HDD

How can you use 7zip to extract a collection of .rar files which if extracted normally would surpass the size of your HDD? Say your HDD was 10GB, if you had a zip archive of 5GB, how could you ...
0
votes
1answer
138 views

7-zip backup folders, exclude some of folders but keep excluded folder's name

By using 7-zip in Linux I need to save zip file to absolute path: /var/www/vhosts/mysite.com/httpdocs/app/webroot/myfiles.7z backup all files and subfolders inside this: ...
0
votes
1answer
238 views

How to show extraction progress of 7zip inside cmd?

7z.exe do not show any extraction progress in cmd."C:\Program Files\7-Zip\7zG.exe" -y x -pPASSWORD "D:\Myfile.rar" Extracts the file with a GUI progress-bar. But I don't want a GUI progress bar. I ...
1
vote
0answers
32 views

How to hide error dialog box in 7zip?

I am using "C:\Program Files\7-Zip\7zG.exe" -y x -pmypassword "D:\Myfile.rar" -o"D:\Extracted Files\" for extracting a file encrypted with password. Now if 'mypassword' is not the correct password ...
1
vote
1answer
47 views

How to unzip a zip file to a folder but avoid duplicate folders?

I think you all know that: you're getting a zip file and you don't know whether it contains all files in a folder or only the files. In order to not get a messed up directory, I never use "Extract ...
2
votes
1answer
2k 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: ...
1
vote
1answer
272 views

Why a “Not enough space on disk” error on 7zip even with sufficient space?

I am using 7-zip to split a large folder (>200 GB) into chunks of 4.7GB so that I can burn them onto a DVD. But for now, I am storing these chunks in an external hard disk which has ~300GB of space. ...
4
votes
3answers
2k 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
1k views

How to crack AES-256 password with (partially) known string pattern?

I forgot the password of the file I'm trying to open. This file was compressed using AES-256 algorithm and has 3.8 KB in size. Question Could you help me with scripting the password cracker when ...
0
votes
0answers
88 views

7ZG.exe - extract subfiles and subdirectories of a specific folder

I have a zip archive, containing a folder called filesFolder. I want to extract the contents of that directory (filesFolder) without the directory name prefixed. This is the command I have so far: ...