Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [7-zip]

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

0
votes
0answers
29 views

7Zip command line: Add without directory attribute D

I would like to add all files within a folder including all files in all subdirs with their paths to a zip archive. So this seems to be just a normal recursive add, but I need directories to be added ...
-1
votes
0answers
31 views

7zip (cannot open file as archive)

I just got 7zip I was previously using WinRAR but I wanted to try 7zip. but I have encountered an error where 7zip is saying when I try to open a zip file that it cannot open it. "7zip cannot open ...
1
vote
1answer
15 views

7zip 7za.exe extracts all files to the folder it is running in

I have a zipped folder with subfolders and files within those, which I need to extract with 7za.exe. However, when doing this instead of extracting it correctly, it extracts all the files to the ...
1
vote
1answer
92 views

7zip on several terabytes, drive already compressed [duplicate]

so, I have a drive that is NTFS. it has thousands of graphics/video files that totals to about 6TB. I wanted to compress and send this info to someone. What is my best option for compressing? I've ...
0
votes
1answer
29 views

7-Zip: Automate script with excluding folder but include its content(set folder as root itself) in .cbr structure

When i use this script for /d %%X in (*) do "c:\Programs\7-Zip\7z.exe" a "%%X.cbr" "%%X\" in directory like this mainfolder comicfolder1 001.png 002.png comicfolder2 001.png 002....
0
votes
1answer
44 views

How to add password command in zip bat file

I have a script below which is working perfectly, all I need is to add a password & encryption while compressing. Any idea where do I put the -p command to make it work? I tried but it is not ...
1
vote
1answer
67 views

Trying to use a bat file but I get the error "7z is not recognized as an internal or external command, operable program or batch file

I assume I need to make Windows recognize 7z as something it can use but I don't know how. I searched for answers and this one here said that I need to add the binary to my machine's PATH but I don'...
2
votes
1answer
25 views

7Zip exclude all subdirectories

In my test my folder structure is as follows: D:\Data\1.db D:\Data\2.db D:\Data\3.db D:\Data\FolderA\1.db D:\Data\FolderA\2.db D:\Data\FolderA\3.db This is a simple example to my complex real world ...
0
votes
1answer
28 views

How to compress a bunch of files efficiently?

Let's say you have a lot of files to archive. They are in several different file formats (txt, docx, pdf, png, jpg, mp3, zip, etc.). What are the best practices to compress them all, so that they ...
0
votes
0answers
21 views

Control the order of extraction in 7zip

Suppose I have three files, file2.txt, file1.txt, file3.txt I want to 7zip these files in the same order and extract them in the same way. I'm aware that these files when compressed will ...
1
vote
0answers
24 views

TSQL XP_CMDSHELL 7ZIP UNZIPPING

I am struggling to unzip a file from using 7-zip. I am running from SSMS the followng command, password is replaced by text "password". exec XP_CMDSHELL 'C:\"Program Files (x86)"\7-Zip\7z.exe e -...
2
votes
1answer
70 views

Fastest way to compress (i.e. archive into a single file) millions of small files on a powerful cluster to speed up transfer of files

IMPORTANT NOTE: Compression is NOT the goal, archiving/taping (packing all of the files into a single archive) is the goal. I want to backup a single directory, which contains hundreds of sub-...
0
votes
2answers
36 views

add folder to 7z with current date in front

I have a folder Foo that I want to backup to Foo.2018.07.12.7z and so far I tried this command: C:\"Program Files"\7-Zip\7z a "Foo%DATE%".7z Foo but the problem is that my date format has slashes ...
0
votes
1answer
41 views

7zip exclude folder by pattern in linux

I'm trying to achieve this but using 7z from linux command line: zip -r target.zip source_folder -x *.git* -x *node_modules/\* I tried with this but I get the following error: $ 7z a mtss.7z mtss-...
2
votes
2answers
54 views

Batch file for 7zipping all folders into .7z directories (no subfolder left inside!)

I'm sorry this has probably been asked numerous times before but I'm tearing my hair out trying to fix my batch code and I can't find a specific answer which I can use to correct my own code. I have a ...
0
votes
0answers
53 views

Create self-extract archive with specified path from command line

I'm currently using 7zip as archive creator and 7zip SFX Builder as SFX packager, because I need to specify InstallPath which is not supported by vanilla 7zip. The problem is that I have to manually ...
3
votes
1answer
227 views

7za create AES256 password protected encrypted zip of a folder

I want to create an AES256 encrypted zip of a folder. I am on Mac and I want to create the zip file and store it in an external drive. I want to AES256 encrypt the file in case I lose the external ...
0
votes
0answers
36 views

Getting E_NOTIMPL error when using -v option with 7zip on Debian

Running Debian 9, installed 7-zip 16.02 (64-bit) from debian repo. I'm attempting to create a split 7zip archive, and I receive this error message: 7z a dir1.zip dir1 -v1k 7-Zip [64] 16.02 : ...
0
votes
1answer
107 views

bz2 data error 7zip

I'm using 7zip and I want to unpack archive (link below) of reddit comments for research: https://www.reddit.com/r/datasets/comments/65o7py/updated_reddit_comment_dataset_as_torrents/ Everything past ...
1
vote
0answers
39 views

Cannot zip a mutli-part archive, zip -FF command failing with out of memory error

Command zip -FF xxx.zip --out final_xxx.zip Fails with zip error out of memory or zip error : cannot split, read, write, file is too big.may be result of bad comrpression , try -fz I do not how try ...
1
vote
1answer
29 views

How do I mercurial clone from stdin

The mercurial bundle I want to clone from is compressed in 7zip format and I don't want to waste time extracting the gigantic bundle to a temporary file. How do I pass the output of 7za to hg to clone?...
0
votes
1answer
21 views

How to ignore already compressed files and remove original raw file

I have tried the following code with 7zip but once I run the batch script it keeps compressing the already compressed file inside the folder. Is there a way to ignore .zip file type and delete the ...
2
votes
1answer
109 views

How to update multiple compressed files with 7zip command line?

I need to update the file "background.png" into hundreds of .zip files in the same directory. I tried the following command without success: 7z u -r "C:\Users\xxx\Desktop\testzip\*.zip" "C:\Users\xxx\...
1
vote
0answers
150 views

7zip command line: how to exclude subfolders only but include files?

Assume we have a folder structure like this: Basefolder |--data |--system1 |--personal |--testing |--doc |--photo and assume there are files under every subfolders. When creating a 7z ...
1
vote
1answer
59 views

Create multiple archives from a directory without the directory root name being added to the archive

This batch works fine for creating multiple archives in a folder but adds the root folder to the archive. I would like it to only add the files inside the root. This is the code I have: for /d %%X in ...
0
votes
0answers
30 views

7-zip “incorrect command” on context menu

I installed the latest version of 7-zip in a clean install of Windows 7 and all of the context menu items for "create archive" result in Incorrect command line. I've uninstalled it, and installed the ...
10
votes
1answer
164 views

Compressing many similar large images?

I'm dealing with a large archive of satellite images of the Earth, each one taken 15 minutes apart over the same area, therefore they are quite similar to each other. Two contiguous ones look like ...
0
votes
2answers
154 views

How can I update the password of a password protected .7z archive?

How can I update the password of a password protected .7z archive using the command line ? I have a couple of big 7z archives (several hundred Gb) and would like to strengthen the passwords by ...
1
vote
1answer
40 views

7zip Linux command line - excluding directories

I'd like to make a .7z archive of my website using 7zip; there are a few directories that contain large files (several gigabytes) not worth backing up, as I already have backups of them. I could ...
0
votes
0answers
206 views

Is the “store” compression level always faster than the rest? [duplicate]

I have an encrypted 7z video archive and performing any change takes several minutes to process. When selecting "store" compression level the program sets "memory usage for compressing"/..."...
0
votes
1answer
156 views

How to have the same hash from a folder on windows and linux?

I was using 7zip to compute the hash of a folder (with subfolders), which it can do with two options, with or without including the file names. However, on the linux version of 7zip, the hash feature ...
6
votes
3answers
224 views

How to recompress many zips on a drive?

I have a hard drive that contains many ZIP files of backups of various things. They were compressed at different points in time in different and inconsistent ways, and a lot of them use minimal ...
1
vote
0answers
48 views

7zip archives become corrupted over time

I have dedicated HDD drive for storing data. To save space, I randomly over the period of last 5 years archived some folders with 7zip. When recently I needed access to contents of these archives, ...
0
votes
3answers
87 views

Where do I get a 7-zip install package that isn't an executable file?

I remember a previous option where you could download a zip file containing everything you need to run 7-zip. Now all the download page has is executable files, msi (Microsoft installer framework for ...
4
votes
1answer
233 views

Is it possible to get a virus/malware infection from opening a 7-zip (.7z) file?

Title says it all. In particular, is there any step in the 7-zip decompression process that could allow code execution?
0
votes
0answers
34 views

7za - Unzip scans the whole Source File directory

I am using 7zip to unzip 7z files. This is the command I am executing. [test@prabhakar ~/7za-test]$ time /usr/libexec/p7zip/7za x -y '/rvmedia/datagen/job/n150000/units_200/FILE000100_PART000100.txt....
1
vote
0answers
61 views

How to Zip a Series of 2 files with same prefix names in a folder?

I ran the following command to zip a series of folders in one main folder. FOR /D %i IN (C:\source*) DO 7z.exe a "C:\destination\%~ni.7z" "%i" -stl -mx=5 -mhe -mtc -bb > c:\destination\"%~ni output....
0
votes
1answer
729 views

7-Zip command line add only specific file to archive?

There's lots of questions asking how to add only files with a particular file extension to an archive, but to my great surprise it seems like no one wants to add a single file to an archive. How do I ...
0
votes
0answers
75 views

Unzipping Zip file = download-corruption guarantee?

I downloaded a zip file and was able to successfully extract the contents, using winrar. However the content (bin/cue files) appears to be corrupted. (after mounting or converting to iso, it shows ...
0
votes
1answer
340 views

7zip - extract with specific structure and specific folder

I have a zip file that people are going to upload. The structure looks like this: file.zip \a bunch of directories: web\ws2go-data\ web\ws2go-data\project\ web\ws2go-data\project\...
0
votes
1answer
32 views

Auto created 7z files script, but need to strip old file extension from the output file name

In a script made by @Enteleform found here. (below) @Echo OFF SetLocal EnableDelayedExpansion Rem // 7-Zip Executable Path Set sevenZip="C:\Program Files\7-Zip\7z.exe" Rem // START: NewLine ...
0
votes
0answers
35 views

Concatenate multiple 7zip archives without having to decompress/recompress them

I'm working on a deployment system of some necessary dependencies* to my program. I create 7z archives stored on my server for each dependency. The client checks if the archive available on the server ...
0
votes
1answer
138 views

How to use Winmerge for archive compare

I need to compare jar files (i.e. zip files) with java files in it. My WinMerge v. 2.14.0.0 Unicode refuses to work with my 7-zip v. 16.04 [64 bit]. The official guide did not help. Is there any exact ...
0
votes
1answer
34 views

Good method for compressing and sending a large folder over a LAN?

I have a relatively large (125gb) folder that contains a lot of data that I want to compress and send over to a backup server on my LAN. Ideally I'd like to compress all of this data as much as ...
1
vote
1answer
336 views

7-ZIP relative path for files

I have to create an archive with multiples files place in subdirectories. for example: .../documents/offers/001.pdf .../documents/offers/002.pdf .../documents/drawings/001.dwg .../documents/drawings/...
1
vote
1answer
180 views

cannot create compressed spitted file using 7zip E_NOTIMPL

I'm trying to compress a folder protect it with password and split if the file size is bigger than 3333MB using 7z. 7za a -ptesttest -mhe=on -mx0 -v3333m /tmp/Test.7z /tmp/xxx/ 7-Zip (A) [64] 9....
0
votes
0answers
137 views

How do I know which 7z file is damaged in a split archive?

I have an archive compressed using 7z into multiple files. There are some data errors in them, 7zip complains when I try to uncompress them. But because it is split into multiple files, I can't ...
0
votes
0answers
221 views

How to improve zip file's compression using 7za command line 7zip

When I pack my project with 7zip, it has 7MB. When I pack it with JSZip the file has 17MB. Now I need JSZip to perform some subtle changes which 7zip does not allow (at least not for zip anyway). ...
0
votes
1answer
136 views

Do a compression dry run (i.e., no file output)

Is there any way to do a dry run compression to RAR or 7-Zip format? (Command line is fine.) What I'd like to get is an accurate compressed size estimate. I tried to find an option for it in WinRAR ...
0
votes
0answers
68 views

How can I get the comment from an ISO file with 7z?

I try to extract an ISO file, make some modifications and recreate the ISO file. One problem is to get the actual comment. How can I get such a comment with 7z.exe command line in a batch file to ...