Questions tagged [7-zip]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
45 views

How do I gzip files from different folders, with each file in its own folder

i would to gzip all the html files in all directories which are under a directory, while deleting the uncompressed files. for /r %%i in (*.html) do "c:\7-zip\7z.exe" a -aoa -mx=9 -tgzip -sdel "%%~ni....
0
votes
2answers
24 views

7zip Extract to Specific Folder

I've written a batch script with 7zip to extract an existing zip file to a specific folder. From what I've read in other forums it should be working....but it's not. When I run just the basic extract ...
0
votes
0answers
26 views

Extract hash values (CRC) and path names from an archive

I have successfully extracted data from a large .rar archive (1.9TB) using 7-zip and now I want to delete the archive. However, before I do so, I would like to save path names and, most importantly, ...
0
votes
0answers
41 views

“Smart” fast compression for archiving mixed content?

I would like to backup a computer folder quickly to an archive format (e.g. tar, zip, 7z, gz, etc.). The folder contains many files: Some are text files that can achieve a good compression ratio. ...
0
votes
0answers
27 views

7zip extract only if password protected

I have an application that runs this command: "C:\Program Files\7-Zip\7z.exe x myArch.zip -aoa -ppassword -odestinationFolder I want to make sure the application extracts only zip or 7z files that ...
1
vote
1answer
60 views

7-Zip: Get number of files in each folder within archive (without extracting)

I have e.g. archive.rar which contains folders with files in it archive.rar \folder_a \folder_b \folder_c How can I get number of files in each folder (without extracting) and export result to a ...
0
votes
1answer
56 views

Run .exe from .zip files (without need of manual folder unpack)

Lets say, I have .exe executable (which has .dll dependencies) and I put then in .zip archive. When I open that archive (tried 7-zip, PearZip, Ashampoo ZIP, ZipWare ) and double-click the .exe ...
0
votes
1answer
76 views

Why do WinRAR and 7-Zip see different files when opening the same compressed file?

Example file jdk-7u67-windows-x64.exe is ~129MB (Oracle account is needed to download) When using WinRAR, it shows the total is 29,170,176B: jre.msi (~27.7MB) jre1041.MST jre2052.MST However, ...
-1
votes
1answer
76 views

Windows 10 security regarding malicious zipped files [closed]

Is there any possibility of malware infection in Windows 10 for the following three situations, a) When you download a zipped file, but do not use it (you do not open it)? and b) When you only ...
0
votes
1answer
23 views

Does 7z compression affected by CPU efficiency

I'm currently archiving a huge amount of data to 7zip, but i've a question regarding the result: Given two processors: 1 very powerfull and the second low-cost -or- Given the same processor but 1 ...
1
vote
1answer
96 views

Combined decryption and unzipping of a file

I have an encrypted file like file.zip.gpg. Decryption is done using gpg --output file.zip --decrypt file.zip.gpg and unzipping the archive contents using 7z(a) x file.zip afterwards. The first ...
2
votes
1answer
47 views

7z command line and GUI password inconsistencies

I'm seeing some weird behavior with 7z. I create an archive with the following command: 7za.exe a "zip_test.zip" -r "C:\zip_test\*" -p"abc123" When I open the archive zip_test.zip using the 7z GUI ...
0
votes
1answer
57 views

Opening DD image in 7zip

For some time, i have used DD images at work to quickly transfer a linux image to a new harddrive in case the old one broke. It works great, no complains. But, i needed to get a file from the image a ...
2
votes
0answers
72 views

Download and extract archive using PowerShell

Using PowerShell 5.1, how can I download a tar.xz archive and extract it without writing it to disk first? All these attempts: Invoke-WebRequest https://www.examle.com/archive.tar.xz -...
0
votes
1answer
61 views

Looking for a Batch Script that will combine 2 file types with the same name into 1 zip file

I have 2200 files. E:\Saturn Bins and Cues\(Files are here) aaa.bin aaa.cue bbb.bin bbb.cue ccc.bin ccc.cue Etc Looking for a batch script that will make a 7z or zip file and combine the bins and ...
2
votes
0answers
49 views

Compressing many similar small binary files independently using a preset dictionary

I have to compress many similar small binary packets (about 1.5 KB a packet) for data transmission. I tested .xz format on a 306 MB sample and I got 50% compression ratio (compressed to 153 MB). But ...
0
votes
0answers
37 views

How to extract multipart 7z with missing parts?

How can I extract any arbitrary combination of 7z.xxx files? Are some of the parts special? (Like the last that should hold the directory structure metadata.) Consider these scenarios: There are ...
1
vote
1answer
31 views

7zip command line how do i add the l next to x

i have this command that works however i want to list contents in zip so i need to add l command to it but i already have x so am stuck. this code extracts a file from zip but i need to add l next to ...
1
vote
1answer
76 views

7zip command line archive folder in subfolder without the first subfolder inside the archive

having a folder structure like this: archive.cmd sub1.zip // create sub2.zip // create foos sub1 sub2 I want to generate sub1.zip and sub2.zip inside the main folder. the problem is that sub1....
33
votes
1answer
4k views

7-Zip seems unable to compress zero-filled virtual disk image after 1.8 GB

I am trying to compress a virtual disk image that is mostly empty. It has about 2 GB used out of 13.5, but even after zero filling the empty space, I am still only able to compress it to around ...
0
votes
1answer
32 views

How to get 7z parameters values

I've found that the (undocumented) 7z -mx4 option gives the best time/compression ratio for my files: 7z a -r -mx4 outfile.7z infile.dat Now I'd like to fine tune the parameters to get even better ...
0
votes
0answers
25 views

Add files to zip using 7zip (or any tool) with MODIFIED/Created date in search criteria

I found couple of answers but most of them are focusing on adding the files that are named with date or timestamp within name (prefix/suffix), which i'm currently handling with following command. ...
0
votes
0answers
198 views

Recover corrupted password protected zip

Good evening. I have a password protected zip archive (Zip 2.0 CryptoZip) with a .txt file with sensitive info inside. The problem is that I can't extract it. 7Zip:"Data error : Wrong password?" ...
0
votes
0answers
24 views

7-zip incorrectly lists content of incremental tar archive

I recently fell in love with the incremental functionality of gnu tar, which I use for my backup script: tar --create --gzip --file=$archive_file $NEXTCLOUD_DATA_DIRECTORY\ --listed-incremental=...
0
votes
0answers
74 views

Splitting encrypted container into chunks while keeping it mountable without re-assembly

I have a subscription to a 1TB cloud hosting provider, offering the possibility to upload any file of any size, based on OwnCloud. I'm planning to use this provider for long-term storage / backups (...
0
votes
1answer
42 views

send folder via ssh then compress and send it back

I need to send folder with eml files from "A" to "B", then compress them with 7z and send back to "A" what i have is ssh user@server "tar -cf - .folder" | 7z a -si compressed_folder.7z but it makes ...
0
votes
0answers
13 views

How to get rid of making another folder inside archive in 7zip

I want it to be directly putting the files in the archive but it is making a folder and then inside that folder, it is putting the files so how to get rid of this issue? here is my code: ...
2
votes
0answers
515 views

Incremental backup with 7zip (follow up clarifications seeked)

For anyone Googling to get a working, complex, 7-zip differential backup going from the cmd.exe prompt... Here is my wallets backup script "C Backup Wallets (7zip) (Differential).bat". It will search ...
0
votes
0answers
51 views

7z how do i search all .zip files for string and extract ( windows )

I have all .zip in C:\Users\don\Desktop\test\New and I want to search all them for a string and if it matches then extract to C:\Users\don\Desktop\test\New folderc FORFILES /P "C:\Users\don\Desktop\...
0
votes
0answers
43 views

7z how do i search all .zip files instead of one

this does exactly what i want however i am looking to scan a specific directory folder that contains all the zip files loop through all them searching for a string then extract it to another folder. "...
0
votes
0answers
15 views

Why is VBScript slow when it comes to unzipping files?

I know that there are of course going to be some struggles. But I'd love to know what specifically makes it so much slower, compared to a JavaScript equivalent, or just using 7-Zip.
0
votes
1answer
53 views

How to zip folder content and save zip with Foldername in same Folder

Hi I'm trying to zip the Folder Content and save the zip in the Folder with the Foldername: OS Windows 10 Folder1 File1.jpg File2.jpg File3.jpg Folder1.zip Folder2 ...
0
votes
1answer
193 views

How can i compress (7z) multiple files in one click/command

I have a folder filled with documents i would like a 7z for each document separately. There are over 800 files. I'm using windows 10 and specifically want the archive in 7z format. I've highlighted ...
1
vote
1answer
33 views

7zip will only zip up certain files

I have a script for zipping up old files and deleting them. The script works fine in all other directories but one specific directory will not work. It will attempt to zip it up but end up only ...
0
votes
1answer
317 views

How do I fix this corrupted 7zip archieve to recover all of my data?

I archieved some files in 7zip in parts in Windows 10 and I uploaded that on cloud. I downloaded it on my laptop (Windows 7) and it says archieve is corrupted even when the archieve was working fine ...
1
vote
0answers
550 views

7-Zip: Getting Extraction Failed “Unsupported Method” when trying to self-extract and run setup.exe for a 7-zip file that has a password

I am creating the zip file using the 7-Zip "Add to Archive" window. Name is ccc.7z with a password specified. All other options use the default. I run the DOS command: copy /b 7zSD.sfx + config.txt ...
0
votes
2answers
47 views

How to delete weird directory `=..`

Running this command 7z.exe e -o=.. example.zip created a directory =... How can I delete it again? Windows Explorer can not delete it: "An unexpected error is keeping you from deleting the folder. ....
0
votes
1answer
25 views

How to archive files with 7z from current directory into a specific directory in the resulting archive?

In the current directory I have a file named "file.txt". How to create an archive with this file in a directory "dir", so when the archive is unpacked the "dir" directory will be created with the "...
0
votes
0answers
17 views

7zip command line to zip a specific folder and maintain structure of subfolders

Main folder - subfolder1 - sub_subfolder1 -files... - sub_subfolder2 -files... - sub_subfolder3 - "" - subfolder2 - sub_subfolder1 ...
0
votes
1answer
48 views

7zip exclude files that are in the folder

$ /usr/local/lsws/poly/public_html ᐅ . ├── image │   ├── cache │   │ └── catalog │   │     ├──cart.png │   │   ├── demo │   │   ├── index.html │   │   └── logo.png │   └── catalog │   ...
0
votes
0answers
16 views

Extact only certain file type while maintaining hierarchy with 7zip

I have a zip file with hundreds of files several gigabytes large. I need to extract only two file types, but I'd like to maintain the file organization hierarchy. Specifically, I'd like to only ...
-1
votes
1answer
55 views

Choosing compression method and settings for mp4 files

I've got a hard drive filled up with videos, and want them to take up as little space as possible.   Video encoding: Around 20000 kbps datarate and bitrate 30 frames/second H.264 AVC Audio ...
1
vote
1answer
74 views

Some zip archives prompted as invalid by windows explorer Windows 10

Some zip files cannot be opened by built-in Windows 10 Explorer. The archive can be opened and extracted by 7-zip app without issues. That is kind of strange issue because windows explorer works ...
0
votes
0answers
12 views

Extracting archives in children, placing contents in each child

With 7zip's command line, I can use 7z.exe x *.rar -o* to extract the contents of all archives (rar, in this case) in the current directory and place them in subdirectories named after each archive (...
0
votes
1answer
31 views

Is there a way to make 7z retain the output folder structure rather than putting all files and subfolders into one single .7z file?

Is there a way to make 7z retain the output folder structure rather than putting all files and subfolders into one single .7z file? My input is for example: Folder A File A File B File C Folder B ...
0
votes
1answer
201 views

Do 7z archives compress each file individually or compress everything together as one?

I read somewhere (I can't remember where) that compressing files into a .tar.xz resulted in better overall compression ratios than .7z archives because archive+compression formats like zip, rar, and ...
0
votes
2answers
921 views

Powershell script to compress all child directories and move to archive; keep file structure. Delete originals

I have a task where I need to compress all child directories (child is each day of a month) within each sub-parent directory (Month) and move to an archive folder. Then delete the originals. Also an ...
-2
votes
1answer
62 views

how can I compress files of less than 300mb using some application for windows10

I have a folder with many files but I only want to compress the smallest, that is less than 300mb, I suppose there must be some application that includes command line or some alternative to be able ...
0
votes
1answer
103 views

So after copying some files to a 7z file the archive turned into a .tmp file. Should I do something about it or should I leave it that way?

I mean it still works like an ordinary 7z file. Should I rename it to .7z? Is it safe to do that? Edit: now it's a .7z.tmp file Edit: Ok so I checked Event Viewer and there was indeed an error: ...
1
vote
1answer
82 views

7z.exe in CCTV Surveillance Progam Files Folder

The CEO of my company installed 7zip to his system. Kaspersky Endpoint Security 10 notified him of vulnerabilities report. He then updated the program to the latest version but it didn't help so he ...

1 2 3 4 5 13