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

Questions tagged [7-zip]

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

6
votes
1answer
204 views

Extract folder content from 7z archive to specific folder

I have a 7z archive file which, at the "root" level, contains a couple of files and then a directory, which in turn contains both files and folders, like this: - file1.txt - file2.txt - my_dir - ...
1
vote
1answer
21 views

Batch repacking archives into 7z with custom settings

I'm working on archiving and compressing a lot of design elements and they are mixed in .zip and .rar files. After tinkering and testing these settings seem to produce the best results for me: I'm ...
-1
votes
0answers
24 views

Trying to unzip or move files and files are missing (like gigs), but no errors [closed]

I'm trying to get my backup from an external HD onto my Lenovo X1 Yoga. After moving, and running properties, many gigs are missing. But the info from Treesize says many more files are present than ...
-1
votes
1answer
27 views

Password Encrypt a file without needing recipient to have special software [closed]

I need to send a zip file to a client and need to secure it with a password. I have tried WinZip, WinRAR, 7Zip and the Windows 10 built in encryption. All of them encrypt the file but on a machine ...
0
votes
0answers
37 views

7zip command line to zip something without directory prefix

We have a batch file that uses Windows 10 builtin zip functionality to zip folders. That is so unpredictable and fails in the middle of 1 hr batch job which requires us start the whole process again. ...
1
vote
0answers
19 views

Quickest way to store (uncompressed) in a .zip file [closed]

I want all my music files to be in one location for easy syncing with my portable media player & for creating backups. However there are a few albums/tracks I don't wish to sync. I don't want to ...
0
votes
1answer
68 views

Batch File FOR Loop 7-zip extract specific file extension

I am trying to create a batch file to recursively extract multiple archives in multiple sub-directories from a source directory to an output directory while keeping archive folder structure. The below ...
0
votes
1answer
30 views

7zip separate directories from a list of network paths

I have a .txt file containing 2400 separate network paths to directories that i need to 7zip into separate encrypted .7z files. I believe i can do something like this in power shell however haven't ...
1
vote
0answers
63 views

7zip error codes

While trying to extract a file from a split archive, it failed consistently at 61% with Unknown error -2147024891 This error code seems to appear only a single other time anywhere, here. And there ...
0
votes
1answer
47 views

How do I use 7-Zip GUI for Windows to create .tar.gz files?

How can I use the 7-Zip GUI on Windows to create .tar.gz files?
0
votes
0answers
17 views

config.txt creating 7zip .exe

i was building a script to make flash usb for backuo everything goes well and i create the zip and when i want to create the .exe everything goes well just the problem is the finale exe file wont run ...
0
votes
0answers
33 views

Open ERROR: Can not open the file as [gzip] archive

I'm rather new to Windows command prompt and am more used to Ubuntu/Mac's command prompt. I'm looking to extract a tgz file using a single command(like wget in Mac), and I tried using 7zip with the ...
2
votes
1answer
19 views

7zip recursive unzip working well in CMD but not in batch

I am using this command below to unzip recursively from the source folder(D:\cnosftp\) and put the extracted file in the same subfolder. FOR /R "D:\cnosftp\" %I IN (*.gz) DO "C:\Program Files\7-Zip\...
0
votes
1answer
48 views

Batch archive multiple folders with 7-zip to other directory

In reference to this wonderful work: @echo off if [%1]==[] goto :eof :loop 7z a -tzip "%~1.zip" "%~1" shift if not [%1]==[] goto loop I can't for the heck of it figure out where to put the output ...
0
votes
0answers
32 views

How to create flag which will indicate completion zip / compress operation?

I am using 7-zip and I would like to run zip operation on dir/files. My requirement is to get certain flag say some file (complete.flag) in a directory along with zipped content to indicate zipping ...
1
vote
0answers
39 views

7zip linux bash script [closed]

I would like to create a script on linux so that a specific folder finds new folders and automatically creates a zip archive and ignores those already created. Can anyone kindly help me? Thanks so ...
1
vote
0answers
16 views

Anyway to create a winrar/7zip script to unarchive a folder containing hundreds of folders containing .part .rars? [closed]

Poking around trying to figure out the best way to handle this. I have a folder full of 205 folders that each contain 10-20 .rar files that I'd like to all unzip to a new harddrive that I just got for ...
0
votes
1answer
27 views

Is it possible to check if a 7zip archive contains the same contents as a directory?

I have a folder on my external hard drive for saving minor backups (G:\LOG), whose contents I have compressed as G:\LOG\LOG.7z. However, I am unsure as to if this was entirely succesful. The folder is ...
-1
votes
1answer
60 views

Why does 7-Zip deflate 257 and 258 word sizes?

Compression word sizes are usually powers of 2. Yet, 7-Zip has some exceptions: Deflate has both 256 and 258 word sizes. Deflate64 has both 256 and 257 word sizes. These seem like such trivial and ...
0
votes
0answers
74 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
vote
1answer
73 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
104 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
41 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
113 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
137 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
64 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
49 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
45 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
112 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
100 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
97 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
68 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
59 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
184 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
554 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
51 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
195 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
48 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
31 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
23 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
118 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
199 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
62 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
31 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 ...
11
votes
1answer
223 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
274 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
79 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
362 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
245 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
255 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 ...