Questions tagged [7-zip]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
70 views

Increase number of items in 7Zip Extract to menu

I was curious on how to expand the number of recent items in 7Zip's "Extract files..." menu to include more recent items in the "Extract to" field. Right now, the "Extract to" field only remembers the ...
user322108's user avatar
1 vote
1 answer
203 views

Extracted files not recognized

I extracted a tar.gz file with 7-Zip. It worked fine, all the files and folders are now visible and have names, different size and so on, yet I cannot open them. And the icons are all the same - a ...
user avatar
0 votes
1 answer
923 views

7z a folder in chunks of 100MB and decompress

I am trying to 7z a folder (in chunks of 100MB) and add it to archive in Linux. Is the following command correct? tar cf - dir/ | 7z a -v100m -si dir.tar.7z How can I decompress the folder? I have ...
Reyhaneh's user avatar
0 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
71 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 fly)...
mrgloom's user avatar
  • 357
0 votes
1 answer
4k 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 ...
Jeroen Wiert Pluimers's user avatar
1 vote
1 answer
3k 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 ...
bjrmeno's user avatar
  • 11
8 votes
2 answers
11k 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 dir\...
Mr. Boy's user avatar
  • 5,256
2 votes
4 answers
58k 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% -...
Jason94's user avatar
  • 1,195
4 votes
4 answers
5k 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 concern,...
Atlantic's user avatar
  • 272
1 vote
2 answers
3k 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 ...
Penfold's user avatar
  • 11
9 votes
2 answers
5k 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 ...
Sam Page's user avatar
  • 151
3 votes
1 answer
9k 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> ...
SerG's user avatar
  • 441
1 vote
1 answer
2k views

How to open corrupted 7z password protected file

I have encrypted a file using 7-Zip. When I try to open it, it is giving an error message of Cannot open file "<File/Directory location>" as archive I have saved my password and password is ...
Atmega32's user avatar
3 votes
1 answer
2k 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?
SerG's user avatar
  • 441
0 votes
0 answers
737 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 ...
jcd's user avatar
  • 1
2 votes
2 answers
2k 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: http://www.sphaero.org/blog:2011:...
Ubeogesh's user avatar
  • 657
1 vote
1 answer
7k 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: /var/www/vhosts/mysite.com/...
trante's user avatar
  • 589
2 votes
2 answers
1k 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 ...
James's user avatar
  • 33
5 votes
3 answers
13k 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 ...
Deb's user avatar
  • 219
2 votes
1 answer
1k 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 ...
Deb's user avatar
  • 219
8 votes
2 answers
13k 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 ...
Thomas Weller's user avatar
4 votes
4 answers
52k 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. ...
dayuloli's user avatar
  • 221
0 votes
1 answer
2k views

Can decompress RAR files with 7z.exe command line?

Can extract RAR files from the terminal with 7z.exe? Thanks! This lines doesn´t works on a Extract.bat file. 7z.exe X Xbox.rar -o
Javier's user avatar
  • 1
13 votes
1 answer
28k views

How to stop 7-Zip from automatically downloading and opening a zip file in Chrome?

I have checked the "Ask where to save each file before downloading" option in Chrome settings yet after installing 7-Zip, every time I click on a link which targets a .zip file: chrome doesn't fire ...
Jaak Kütt's user avatar
3 votes
1 answer
545 views

Is there a way to compress files at different compression levels inside a single 7zip file? [duplicate]

Some files are compressed using their own compression scheme and some aren't. If I try Max compression on an already compressed file, I'll get 1%-2% better compression at most. The amount of time ...
Jim Kieger's user avatar
11 votes
1 answer
22k views

How to exclude a folder in 7zip?

I want to compress the folder C:\Temp but without a specific subfolder (e.g. C:\Temp\test). How can I do that with 7zip? I've come up with the following command: c:\Temp>7zip a -t7z test.7z c:\...
Martin Vseticka's user avatar
0 votes
1 answer
75 views

Is it possible to strip the extension before archiving?

I'm not sure about this, but is it possible to save files in an archive under a different name? I'm trying to do this as I'm currently using 7-zip as part of a batch file script to process a bunch of ...
Qantas 94 Heavy's user avatar
5 votes
1 answer
2k views

7zip command to extract with full paths (excluding first folder level)

Using 7zip command line version, I need to extract a .7z file with full paths but excluding the first folder level within the archive. I thought that this command below would work but it still ...
rejhart's user avatar
  • 51
11 votes
3 answers
67k 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 ...
Jim Kieger's user avatar
0 votes
1 answer
1k views

7zip commandline equivalent of these gui settings?

I'm trying to compress an archive using the following GUI settings: 7z, Fastest, LZMA2, Dict 64KB, Word 32, solid block 8mb, cpu threads 8. "C:\Program Files\7-Zip\7z.exe" a -t7z -m1=lzma2:d64k:fb32:...
ryan's user avatar
  • 169
0 votes
2 answers
9k views

How to install non Microsoft USB device driver on PC without admin rights?

I am running Win 7x32 secured corporate laptop. My USB audio device has .exe installer file which is not possible to execute because of having no admin rights. Is it possible to embed driver files in ...
Ron's user avatar
  • 1
1 vote
1 answer
496 views

Extracting one file from archive: 7-zip requires decompressing entire archive?

I've noticed that when browsing an archive containing multiple files with 7-zip 9.20 Windows GUI, extracting one file for previewing takes significantly longer with .7z than .rar archives. With .7zips ...
siikamiika's user avatar
4 votes
1 answer
4k views

What does the number after 7-zip's -m switch mean?

7-zip has a command line switch to set the compression method, -m followed by a number, e.g. -m0=LZMA. What does the number (0 in the example) mean? Different numbers produce slightly different ...
AndreKR's user avatar
  • 640
2 votes
1 answer
7k views

How to create a locked (read-only) 7zip archive?

You can create a "locked" RAR archive using WinRar such that the files can't be modified or deleted, and they become readonly without using a password. Is it also possible with 7z format? It is ...
QED's user avatar
  • 121
0 votes
1 answer
3k views

zip sub folders individually

can anyone help me make a batch file for my problem. i have multiple folders that i want to compress individually. root folder 1 file 1 file 2 ...
Denis Macaraig's user avatar
8 votes
1 answer
23k views

7-zip - how to use command line to include/exclude large list of files

I'm (trying) to develop a program to operate the 7-zip console program (7z.exe) via ShellExecute() and passing it a computer-generated list of files. Now what I want to do is this : I want to pass ...
zsteve's user avatar
  • 81
5 votes
6 answers
6k views

What other archive formats save Date Created and Date Accessed?

Compressing Files When zipping files with Windows' built-in zip utility, it will not save the Date Created in the archive: Also, I just found a bug where Windows will not save the Date Modified of ...
NobleUplift's user avatar
  • 1,595
0 votes
1 answer
656 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?
Franck Dernoncourt's user avatar
0 votes
1 answer
2k views

7Zip and forfiles - Invalid argument/option - 'a'

I need some help with a script I'm working on. It seems I'm missing something. The command line is as follows: forfiles /P "F:\source_path\" /M *.bak /D -1 /C ""D:\7za\7za a -tzip -mx7 -v40m E:\...
JohnnyP's user avatar
52 votes
12 answers
97k 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 ...
geotheory's user avatar
  • 1,089
4 votes
4 answers
13k 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 ...
RazgrizNeedsHelp's user avatar
0 votes
3 answers
2k views

How to store complete path using 7z on linux

I am looking for a simple way to backup files that have changed in the last 24 hours and creating a daily 7zip file ( I don't need permssion or users just files ). Using the following command I can ...
StephenTrapped's user avatar
0 votes
1 answer
722 views

How to create ZIPs with the content of every folder [duplicate]

I have several folders and I need to compress the content of each folder in a separate ZIP file. However, every ZIP should only contain the content of each folder and not the folder itself. The ...
Erues's user avatar
  • 3
1 vote
2 answers
1k views

7zip is incompatible with tar format created by git archive

% git archive --format tar master > archive.tar % file archive.tar archive.tar: POSIX tar archive % tar cf a.tar archive.tar % file a.tar a.tar: POSIX tar archive (GNU) 7zip cannot unpack tar ...
LetMeSOThat4U's user avatar
1 vote
1 answer
3k views

7zip - compress the contents of each folder in a directory

I basically want to compress each file in each folder, delete the original file and leave the folder uncompressed. I don't want to compress the whole folder, only the contents in it. That, with 7zip ...
Ivan P.'s user avatar
  • 11
1 vote
1 answer
1k views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z /home/...
user2630659's user avatar
1 vote
0 answers
508 views

How can I create a self-extracting executable from the windows command line that accepts the default install directory as a parameter?

I have tried several different methods including winzip command line and 7zip, but I cannot find a method that will let me create a self-extracting executable that will extract to a specific directory ...
Paul's user avatar
  • 11
9 votes
6 answers
50k 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 ...
The Fiddler's user avatar
10 votes
2 answers
44k views

How do I add a file to a zipped file when using 7-zip?

I used to be able to drag & drop and add a file to a zipped folder. Now I cant when using 7-zip. I upgraded to a new computer with windows 8 (nightmare) that has 7-zip and I would either like to ...
Michelle's user avatar
  • 101

1
10 11
12
13 14
17