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

learn more… | top users | synonyms (1)

59
votes
5answers
188k 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 ...
2
votes
1answer
88 views

/dev/fd0 equivalent on windows. (Writing directly to tar floppy)

I am currently using a system I cannot change that writes tar files to a floppy disk. I need to read/write the same type of disk on a windows machine. The command used to create the disk in Linux ...
1
vote
0answers
152 views

How to untar file with UTF-8 special characters in Windows

I want extract a TAR file with special characters UTF-8 and when open it with WinRAR and PeaZip show filename like mark question and when extract it with WinRAR and 7-Zip file name change to ...
4
votes
3answers
8k views

Create 7-Zip SFX executable

I'm playing around with 7-Zip to create a self-extracting archive (SFX) executable. I followed the documentation, but I wasn't able to get any close. I'm using the 7-Zip 32 bit and the 7-Zip extra 32 ...
1
vote
1answer
81 views

How do you gzip multiple files using 7Zip from a context menu shortcut?

I have a bunch of files I'd like to individually zip up with a single action using 7Zip. 1) select all files 2) right click > 7-Zip > GZip 3) each file get's archived as .gz or or .zip ...
0
votes
1answer
130 views

“recompress” a 7z archive inline

I have a rather large (~500GB) 7-zip archive. I originally made it when I had more space available, and did so at rather fast, low-compression settings. Now things are tight, and I'd like to try and ...
1
vote
2answers
9k views

Extract all Zip's in a directory (incl. subfolders) with a .bat file or dos command

I want to extract all .zip's and .rars in a folder and its children The structure is like this: MAIN_FOLDER -A folder - a.zip -a.rar -B folder - b.zip ...
9
votes
5answers
8k 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 ...
1
vote
1answer
57 views

7zip : Set archive's LastWriteTime as old as the content

On windows, with 7za.exe v9.38, how can I set the archive's LastWriteTime (or CreationTime) same as the content? For example : I have a "toto.txt" file, created and last written on 01/01/15. 7za.exe ...
0
votes
0answers
52 views

Unable to extract prebuilt virtualbox with Windows 8

I went to this site, http://dev.modern.ie/tools/vms/windows/ to download prebuilt Virtual Box, with IE 10, Windows 8. The instructions say extract with 7-zip. When I try to extract, it asks for ...
0
votes
2answers
2k views

how to open a zipped folder shown as zip.xml file?

I zipped some folders using winzip on my old laptop and copied to an external drive. The folders contain all types of files including xls, doc, ppt, etc. Now I am trying to open the zipped folders in ...
1
vote
0answers
90 views

Incremental backups with 7-zip

I am trying to set up an incremental backup with 7-zip after finding zip might not suit my needs fully/easily. My data is located in /media/Data/Work. For some reason it is not liking my code. I've ...
0
votes
1answer
186 views

7zip: compress and copy to destination folder

I am trying to do the following: command line compress a file from C:\TestFolder\file.txt (source location) and on the same command or bat file put that compressed file in (a destination folder) ...
26
votes
3answers
49k views

Is it possible to execute a file after extraction from a 7-Zip self-extracting archive (SFX) archive?

I'm try to make a compressed deploy-able application. Currently I'm taking a set of files that I've published from my IDE (Visual Studio 2008 - WPF published application) and compressing ...
1
vote
1answer
323 views

Batch file to create .7z archive for each file (in folder/subfolder) to a new destination (folder/subfolder structure)

I use a batch file to backup files to 7-Zip archives. It creates an archive for each file separately in the folder where the original file is. Works with sub folders. FOR /r %%i IN (*.*) DO ( ...
4
votes
2answers
3k views

How can I get a content-listing of a 7z-archive under Linux?

This answer and this one suggest p7zip to work with 7zip-archives under Linux. I can see option for compressing and decompressing. But how can I get a content-listing of an archive, without ...
1
vote
2answers
35 views

What 7-zip command line syntax can I use to display errors only when creating a zip?

I do not want all the file names being read to scroll in the command window, but would like only problem files to appear. Better yet, I would like to direct error output to a file. My only alternative ...
3
votes
0answers
185 views

Possible bug in 7zip - empty folders extract as empty files

I have a directory structure as follows: Main | |--empty_folder | |--folder | |--example.txt I'm zipping it using the .NET ZipFile.CreateFromDirectory method (but I doubt this has anything to ...
0
votes
0answers
46 views

How to change context menu option for 7zip?

I work a lot with .gzip format and I am wondering if there is a way to change the default "Add to" format in the context from .zip to .gzip.
0
votes
2answers
797 views

7-zip archive with hard links?

I see that tar respects hard links $ ln clonezilla.iso test.iso $ tar cfvvJ archive.tar.xz *.iso -rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso hrw-r--r-- Steven 0 2012-03-25 ...
11
votes
3answers
17k views

Extracting msi files using Linux

Related: How to extract files from MSI package? To extract the contents of a MSI installer using Linux, I can either use msiexec with wine or use 7zip. However, the latter does not preserve ...
1
vote
0answers
53 views

Uncompress recursively using 7-Zip from command line

I'm attempting to uncompress several .gz files using 7-Zip from the command line. My files are in directories like so: Desktop/copyto/1/ file1.gz file2.gz Desktop/copyto/2/ file1.gz ...
0
votes
1answer
22 views

Want new directory while extracting archive file using 7zip

I Have Some files and Directories in archive directory Archive File_1 File_2 Directory_1 Directory_2 I want to create zip file of archive directory. But I do not want name archive zip Instead ...
1
vote
2answers
370 views

How to pass multiple files to zip in a single command using 7 zip?

I have one folder which will contain below mentioned files: destiny.txt destiny1.txt destiny2.txt destiny3.txt destiny4.txt destiny5.txt destiny6.txt destiny7.txt Out of which destiny1.txt, ...
2
votes
1answer
1k views

Compress large CSV FIle? (500MB)

I have a CSV-File which is 500MB of size. I am searching for a way to compress is to it smallest possible size. I actually received the file back then in a ZIP-Folder which was only about 50MB of ...
55
votes
3answers
56k 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?
2
votes
1answer
89 views

Why does 7-Zip's compression speed lower over time?

I'm busy backing up my local server files, which amounts to just under 4GB of data in ~295000 files. I selected 7z as the format, and set the level to Store. The process started pretty quickly, but ...
1
vote
0answers
211 views

7-Zip: Opening image from 7z archive produces error code 0x8000000a

I've tried encrypting a folder containing a text file and an image with AES encryption using the .7z format. When I enter the password to open the encrypted folder the two files are displayed. I can ...
6
votes
1answer
169 views

7z: What *does* the -r flag do?

The man page for 7z simply says Do not use "-r" because this flag does not do what you think. The only documentation I can find basically restates the same thing. -r[-|0] Recurse ...
1
vote
1answer
7k views

7-Zip: Unsupported Compression Method while trying to extract a zipx file that consists of JPEGs

A zipx file I received consists of .csv files and .jpeg files. I used 7-zip to extract them. While the .csv files were sucessfully extracted, the JPEG files didn't. The error was something like this ...
1
vote
0answers
80 views

7zip only asks me for a password once when I open an encrypted file

I archived some files on my laptop and encrypted them using 7zip and the first time I tried to open a file, it asks for the password, but after that it never asks for a password... is there a way to ...
2
votes
2answers
137 views

How to compress multiple files with similar names?

So I've got some 20 000 files that I want to compress and group by following logic: compress every file that have identical characters up to ( also include files that have no ( So the files are ...
1
vote
1answer
49 views

Is there a tool similar to IEpxress or 7Zip that can pass command line arguments to a dependency [closed]

I recently discovered IExpress and would like to use it to package arbitrary scripts in any language with their respective interpreters/libraries/dependencies. IExpress and 7zip can offer all of that ...
1
vote
1answer
295 views

7zip Batch Compression for a specific file extension in different folders

I've already learn how to batch compress my files as-is with 7zip but I have something more complex need on this issue. Maybe I can explain my needs with this scenario; I have a backup folder of my ...
0
votes
1answer
40 views

Decompress files in subfolders to the same subfolder using 7-Zip

I have a set of subfolders with .gz files buried in them. I need to decompress the files and keep the directory structure the same. I have used for /f "usebackq" %i in (`dir *.gz /s/b`) do 7za x %i ...
0
votes
1answer
372 views

7zip command not extracting to specified output directory

7z x d:\migration\mongo\mongodb.7z o:f:\data *.* -r I'm using this command as part of a batch to extract the contents of a 7z file from one drive (D) to another (F). The folder structure is ...
2
votes
1answer
161 views

How to pass parameters in batch file and zip the file using 7z.exe?

I need to create a batch file as per below requirements 1) pass path1 & path2 while running the batch file exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt 2) Need to store these command ...
1
vote
4answers
744 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 ...
7
votes
5answers
7k views

Is it safe to store my passwords in an encrypted .7z/.zip by 7-zip?

Here is what I do: Type in all kinds of passwords in an excel file (.xlsx) Zip it with a password by 7-zip AES 256 length > 8 combination of A-Z a-z 0-9 symbols different from ...
-1
votes
1answer
459 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
1answer
844 views

7zip - Command Line: how to set output path?

I want to compress all HTM files in D:\HTM\ to an archive called comp.7z which is created in D:\HTM\ directory, so I do the following: 7z a -o "D:\HTM" comp.7z "D:\HTM" and get an error, exactly as ...
1
vote
1answer
182 views

7-zip update: skip operation if nothing has changed

I am using 7-zip to backup folders on my disk into 7z archives on a network storage. Each time the backup script runs, it will update the existing archives in 7-zip update mode (compress new files ...
0
votes
1answer
293 views

How to extract 15GB rar file containing mkv video files

I have a .rar file that contains 15 GB of mkv video files. I am using Windows 7 64 bit and all hard disk partitions are NTFS. There is 500 GB of hard disk space and 4 GB of RAM. I have tried ...
0
votes
3answers
9k 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% ...
-1
votes
1answer
57 views

How can compressed archives like .RAR be repaired?

I'm interested to know how WinRAR and 7-zip repairs archives but unfortunately I couldn't find any description about this process.So I'm here to ask: How does WinRAR or 7-zip repairing process work? ...
2
votes
1answer
553 views

How to 7zip multiple folders in to one 7z package?

Let's say there are 3 folders: /a/1 /b/1 /c/1 And any of the folders may contain sub folders like /a/1/x /b/1/y ... How to compress /a/1 /b/1 /c/1 folder with files and sub folders into same one ...
3
votes
3answers
2k views

Automatically extract and rename extracted file according to archive's name

I have a bunch of zip files in a folder. Each zip file has a file in it named exp_1.txt. I would like to unzip each zip file and rename the extracted file from each zip file to what the zip file was ...
0
votes
2answers
209 views

How to create a zip file with files in FAT format on Linux

I have to create a zip file (with no compression). I want the files in the zip to be in FAT format. That is, If i use zipinfo command, I should get the following: ... -rw-a-- 2.0 fat ...
6
votes
1answer
5k views

7-zip files on Linux with AES-256 encryption

I have a requirement to zip up some files in Linux with 7zip using AES-256 encryption. The end user will be opening in Windows with 7zip. I'm using the following command: 7za a myfile.zip test.txt ...
1
vote
1answer
360 views

7zip not allowing file extension in the archive name

7za.exe a C:\temp\file.txt.7z C:\temp\file.txt Error: there is no such archive why is 7zip not allowing file extension in the archive name? I even tried it with simple period in the archive name, ...