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

learn more… | top users | synonyms (1)

4
votes
4answers
24k 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
1answer
149 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
529 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?
10
votes
7answers
10k 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
132 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
2answers
118 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
1k 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: ...
1
vote
1answer
840 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
62 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 ...
2
votes
1answer
3k 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
1k 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. ...
0
votes
0answers
399 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: ...
10
votes
1answer
2k 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 ...
0
votes
0answers
74 views

Batch rearchive zip into 7z using best options and asking for each what to do

Batch repacking zip archives into 7z this one helps a bit, but I would like to get asked for each ZIP files to what to do(opts: delete, repack, leave as it is), and idk if this script does, but after ...
0
votes
1answer
47 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 ...
3
votes
1answer
118 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 ...
5
votes
1answer
302 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 ...
1
vote
2answers
653 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, ...
1
vote
1answer
262 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 ...
2
votes
1answer
1k 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 ...
3
votes
3answers
6k 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 ...
0
votes
1answer
826 views

7ZIP - Command Line Compression | Can Never Keep it Simple

I've been Googleing for a few hours on how to just compress a file inside a directory and I can't find anything. I found how to just compress a folder in general. Now I wish to know how I can compress ...
0
votes
1answer
153 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 ...
0
votes
2answers
1k 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 ...
38
votes
3answers
45k views

How can I unzip a .tar.gz in one step (using 7-Zip)?

I am using 7-Zip on Windows XP and whenever I download a .tar.gz file it takes me two steps to completely extract the file(s). I right-click on the example.tar.gz file and choose 7-Zip --> Extract ...
18
votes
3answers
17k views

How can I install 7zip so I can run it from Terminal on OS X

I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
0
votes
1answer
78 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 ...
2
votes
2answers
719 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 ...
0
votes
1answer
324 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 ...
0
votes
1answer
314 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 ...
3
votes
1answer
4k 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 ...
0
votes
1answer
416 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 ...
1
vote
3answers
7k views

Extracting a Zip File with Japanese Filenames?

I'm trying to extract files from a zip file on Windows 7. The filenames are in Japanese, but they just look like éñé▀é─é±é─ü[é╓é┐éσèGòùé▄é╟é⌐üÖâ}âMâJâZâbâg20110423. They include a 3D model file and ...
9
votes
8answers
18k views

How to make 7-zip do a whole bunch of folders

I got a bunch of pictures that I had to crop into 800x600 pixels. That was easily done, but now I have to upload them so the family can see them all. Thing is, this is 500MB in pictures. I decided to ...
2
votes
2answers
563 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 ...
1
vote
0answers
2k views

7-zip command line -p switch not working according to help page [Solution Found]

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 ...
1
vote
1answer
339 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 ...
0
votes
3answers
363 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 ...
4
votes
1answer
615 views

7zip filename encoding problems

I have problems extracting files from 7zip archive with non-ascii symbols in filenames. I have identical versions of 7z on two computers, which differ only by the system locale. If I compress on one ...
0
votes
1answer
282 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 ...
1
vote
3answers
831 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 ...
1
vote
2answers
255 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 ...
11
votes
6answers
19k views

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. ...
1
vote
1answer
1k 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 ...
2
votes
3answers
2k 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? ...
1
vote
0answers
155 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 ...
0
votes
2answers
2k views

How do I convert my existing zip files to 7z with 7-zip comand line?

I'd like to convert a couple thousand zip files to 7z, with maximum compression and multithreading enabled. Also in another place. Like c:\temp\file.zip to f:\converted\file.7z
1
vote
2answers
2k 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 ...
1
vote
1answer
51 views

Extract files to a different folder

On a Windows XP machine, I have a zip file located on "c:\temp\mydata\okidata.zip". Using 7-Zip application, I would like to write a batch script and extract the file silently to the following ...
0
votes
1answer
72 views

Specify archive-to directory in 7z

I'm running 7z a from the command line and wish to specify the directory which the archive .7z file is to be in. I don't see, from the man page, a way to do this (and -o and -w don't do it). Is there ...