7-Zip is a file compression archiving program

learn more… | top users | synonyms (1)

0
votes
1answer
30 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
65 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
127 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
1answer
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
2answers
439 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
131 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 ...
0
votes
0answers
28 views

Is there a consistency check in 7z's self-extract executable?

What I mean is that when you run a self-extracting executable... Does it check the consistency of the files? For example if you use a .exe RAR, it will open a dialog if there is something wrong ...
2
votes
1answer
854 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
4k 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 ...
2
votes
1answer
1k 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.
2
votes
3answers
966 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 ...
0
votes
1answer
745 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
91 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
313 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 ...
33
votes
3answers
33k 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 ...
7
votes
3answers
5k 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
57 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
197 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
161 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
153 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
1k 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 ...
3
votes
3answers
6k 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?
2
votes
2answers
76 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 native .7z format. Any Unix-based formats are ineligible. Are there any ...
0
votes
1answer
164 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 ...
0
votes
3answers
3k 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 ...
6
votes
8answers
16k 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
424 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 ...
2
votes
1answer
2k 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 ...
1
vote
0answers
941 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
202 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
188 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
351 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
177 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
616 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
169 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 ...
8
votes
6answers
14k 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
445 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
1k 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
120 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
1k 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
524 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
63 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 ...
2
votes
3answers
3k views

How to search the content of archives (7z)?

I am looking for a way to search the content of files inside of 7z archive without having to unpack the archive. I have many 7z archives with code inside them and I'd like to search them. Is there a ...
0
votes
3answers
699 views

Extract files with umlaut in 7zip file created under windows to Linux

I want to extract a large backup of my hard drive compressed with 7zip under Windows to my Debian Wheezy installation. I'm using the following command line: 7z x -pmypasswordhere file.7z If there's ...
1
vote
3answers
6k views

How to compress a JPG image File

I am trying to send an email with an image attachment. But the image size is 40MB and the attachment size can only be 25MB. How can I compress the size of the image so that I can send it via Email?. I ...
0
votes
0answers
81 views

command line extracting especified file from 7z file

I would like to extract a specific file from a 7z file, but that filename exist twice on different directories. How can I choose one of them? I tried using compressed path but I received an error ...
0
votes
1answer
148 views

7zip archive is too large when using -x

I am compressing a dir into a zip, and use several -x switches. 7z a -tzip -x!.\test1.gadget\.git\* -x!.\test1.gadget\.gitignore test1.zip .\test1.gadget\* 7-Zip [64] 9.22 beta Copyright (c) ...
4
votes
4answers
7k views

7-zip commandline How To archive with subdirectories? Or, how to KEEP folder structure while archiving

I have a bunch of files like this: C:\G\G1\35antique-shop.mp3 C:\G\G2\35antique-shop.mp3 C:\G\G1\09saguri.mp3 C:\G\G2\09saguri.mp3 edit1: I just wanna know how to KEEP folder structure while ...
1
vote
1answer
422 views

7z getting an event not found error in command line

I am using 7zip on my centos machine and ziping a file via command line. This is my syntax 7za a -t7z backup.7z public_html\ -mx0 -xr!restricted_area What i'm expecting with this syntax is to ...