1,428 questions
0
votes
0
answers
29
views
Memory problem when serializing zipped files in PySpark on Databricks
I want to unzip many files in 7z format in PySpark on Databricks.
The zip files contain several thousand tiny files.
I read the files using binary File and I use a UDF to unzip the files:
schema = ...
0
votes
1
answer
29
views
Trying to read Split Zip File throws ZipException in zip4j
I am having a split zip file test_10G.zip.001 and test_10G.zip.002. I am trying to use isSplitArchive() Function from zip4j. But I am getting an exception saying Zip headers not found. Probably not a ...
1
vote
0
answers
66
views
Start 7Zip executable in a new process and pass encryption password in a secure manner
As the title mentions, I want to start 7z.exe and give it all the parameters, including a password, because I want to generate an encrypted archive.
In case it matters, I'm doing this on a Windows ...
0
votes
0
answers
22
views
Extracting Info.plist from HFS+ DMG on Linux (AlmaLinux 8) — 7z and dmg2img not working
I'm working on a PHP script (running on AlmaLinux 8) that needs to extract the Info.plist file from a .dmg file to retrieve the app version. Here's the command I use on macOS to locate the Info.plist ...
0
votes
0
answers
40
views
FTP server - caged
I try to access the FTP server to get the CAGED files. But as an error, it shows that the files are corrupted. When I try to access the message “Corrupt input data”. So I'm unsure whether, in fact, ...
0
votes
0
answers
26
views
How to modify text alignment in Pencil Project wireframes by editing embedded XML?
I'm using Pencil Project for creating wireframes of GUIs, and I want to learn how to modify the wireframe more accurately and precisely by editing the XML embedded within the .epgz files. Here's the ...
1
vote
0
answers
89
views
Python py7zr extracting .7z archive differently to Linux command line 7zip
I have created a .7z archive using the usual basic Windows UI. It is my understanding this defaults to relative paths for any archives created. When looking in the archive post creation, all I see is ...
1
vote
2
answers
122
views
Extract large 7z nested archives using pipe
I have a large password-protected 7z archive that contains another password-protected 7z archive, structured as follows:
OuterArchive.7z (200GB)
└── InnerArchive.7z (200GB)
├── SomeFile....
0
votes
1
answer
43
views
Batch script to unarchive multiple archives using 7zip [closed]
I'm trying to unarchive a lot of archives in a folder. I'm trying to archive them just outside, without making a folder per archive.
I'm using this code
@echo off
setlocal
rem Set the path to the 7-...
1
vote
1
answer
191
views
Extract password protected 7z files using Powershell
I am trying to extract bunches of 7z files.
I was able to get these two sets of Powershell script from other Stackoverflow posts, but none of them seem to work.
$7ZipPath = '"C:\Program Files\7-...
1
vote
0
answers
78
views
7Zip Folder synchronization
I'm trying to unzip a folder with 7Zip, which works nicely.
Unfortunately, 7Zip does not delete unnecessary files that may already be in the Folder . For zipping, there is the option u -uq0 to ...
0
votes
0
answers
89
views
Extracting large password protected 7zip files whilst streaming?
I have a requirement to unzip password protected 7zip files from AWS S3 to a container that has limited space.
The problem is I can't download the entire zip file and then attempt to extract it ...
1
vote
2
answers
42
views
decompress and get size of file in c# (bzip2)
Can anyone spot the error why it gives me the wrong value every time, never the correct one?
private long Main(string bzip2FilePath)
{
long totalUncompressedSize = 0;
try
{
...
0
votes
1
answer
181
views
7-Zip extracts file in encrypted zip but 7z.exe fails to see file
I have an archive file that I would like to decrypt and unzip and have the data inside available in R. After some trial and error, I ended up trying the system command in R and 7-zip to extract first ...
0
votes
2
answers
138
views
Unzip in VBA and rename output file to zip-file name
I've already searched for a solution, but I just couldn't find any. I just want to unzip a file and rename the output to the zip files name then (e.g. myfile.zip ---> myfile.xls). My zipfiles ...
0
votes
1
answer
179
views
How to exclude folders while executing 7zip cmd?
The problem is rather simple. I am making a module that creates a zip and then adds files to the zip using this command in Delphi 6:
ExecuteAndWait('7z.exe', Format('u -p%s "%s" "%s&...
0
votes
1
answer
250
views
Zip file metadata oddity – reasonable or suspicious?
create a directory D containing directory E. In E create files F1 and F2. Turn D into a zip file.
Examining this zip file using python and the zipfile module, or 7zip using the CLI flag to get ...
0
votes
0
answers
36
views
How to efficiently extract individual files from 7z archives efficiently in Python? [duplicate]
I have downloaded 424 files from Nexusmods using a Python script I wrote. They have a total size of 21.5GiB and they are all either .zip, .rar or .7z files (some .zip files are renamed to .dazip files)...
0
votes
0
answers
138
views
7z compression slows down sharply after triggering the caching mechanism
Phenomenon
I am using 7z compressing software and I want to compress a virtual machine folder (14 GB, 49 files) into a zip file at the same folder. I just keep the default options of "zip format&...
0
votes
0
answers
199
views
SSIS Package with 7-zip exe not working in SQL Server Agent
I created a SSIS package to extract zip files (which contains Csv files) using 7-zip then uploads the data into SQL Server. When I run it in Visual Studio, it worked perfectly, but when I run the job ...
-1
votes
1
answer
50
views
Not able to zip to output directory when giving absolute path
I am using 7z.exe on windows command line to zip to an output directory. I understand that -spe switch is used for absolute paths. I am at the moment able to create the zip but not at the specified ...
0
votes
1
answer
372
views
Is there a way to ZIP files using 7z format in Azure Data Factory?
I'm in the process of migrating an SSIS package to Azure Data Factory Pipeline, one of the things it does is ZIPs a large file (around 4gigs) to .7z format. I need to be able to duplicate this ...
0
votes
1
answer
237
views
Reading a multi-part 7z file using Python is failing due to memory issues
I am using a loop to read multi-archive 7z files with this code.
import py7zr
import multivolumefile
zip_path = f"{ARCHIVE_PATH}/test.7z"
with multivolumefile.open(zip_path, mode='rb') as ...
0
votes
1
answer
411
views
What is the difference between 7-zip Deflate and zlib.compress()?
Helo everyone
I am trying to understand Deflate compression but from what i have seen i think i have misunderstood or done something wrong.
So i grabbed a source code for 7zip so i might understand ...
0
votes
0
answers
47
views
Zip all subdirectories in a directory and ignore files
Im looking for a script that can zip all subdirectories of a directory, but ignore the files within said directory.
e.g.
/foo
/foo/bar
/foo/baz
/foo/barbaz.txt
Would become
/foo
/foo/bar.7z
/foo/baz....
0
votes
0
answers
51
views
Why can't I make a vhd that can open in 7zip?
I am trying to create an image for diskless boot using Win 10.
When I finished setting up a client PC (with Win 10), I tried to image it using 1) DD for Windows and 2) Disk2Vhd, now for some reason, ...
0
votes
0
answers
111
views
Problem Loading 7-ZIP Library with JEDI 7-ZIP Archive
I'm trying to run the 7-ZIP compression example from JEDI Code Library, but I keep getting this error:
Project ArchiveDemo.exe raised exception class EJclCompressionError with message 'Cannot load ...
0
votes
0
answers
40
views
How would I get the outputstream from a library?
I'm making a kotlin app for android that uses a 7z library to unzip some files, I got the library to work but i would like to add functionality for getting the progress of the unzipping, this is ...
1
vote
1
answer
31
views
How to resolve error with 7zip not getting installed using chef-client version 14.6.47
I am getting below error
Recipe: 7zip::default[0m
amazon-ebs: * windows_zipfile[c:/dirname/] action unzip
amazon-ebs: [0m
amazon-ebs: =========================================================...
0
votes
1
answer
104
views
How to run a one-off Python unzipping script (19Gb .7z archive) on GC?
I need to extract files from the archive on a one-off basis. The Python code that can handle the task is very simple:
from py7zr import unpack_7zarchive
import shutil
shutil.register_unpack_format('...
0
votes
1
answer
125
views
CodeBlocks lib7z linking issue
I'm using Code::Blocks v20.03 in C++17 compatibility mode, and I am trying to link the bit7z 7zip decompression library to my project. I downloaded the latest build of bit7z(bit7z-v4.0.5-mingw8.1....
0
votes
1
answer
185
views
7zip commandline extract excluding single file with spaces in the file name
Using 7z.exe (v19.00 x64) from the commandline on Windows 11
I've tried these syntaxes:
"C:\Program Files\7-Zip\7z" x -bb3 -x"Www.WebAddress.Net - My Website.url" -o_Extracted -...
0
votes
0
answers
234
views
How to import external library py7zr into AWS Glue Job?
I am working with AWS Glue. A 7z file must be extracted from S3 and subsequently transformed and loaded the lines of a resulting .txt into an RDS database. I need to use the py7zr library to be able ...
1
vote
1
answer
261
views
Windows 11, native 7zip support
Since win11 recently (in 23H2) added native support for rar/7zip/etc. is there any API to use those from c++ ? (Or it's just explorer thingy, that cannot be used by app)
I need this for demoscene ...
1
vote
1
answer
204
views
Compress using 7zip with password protection in java
I have an encrypted file which I need to compress using 7zip with password protection. I couldn't find any useful reference online. I'm new to this zip file stuff and I don't have an idea if this ...
0
votes
0
answers
49
views
Is this a valid way to Implement locks under CLR in unmanaged code?
Just a heads up if you planning to look into this question you are probably going to have to download the 7-zip SDK its got far too many macro definitions for me to copy and paste them all here.
...
0
votes
0
answers
60
views
Trying to use 7z compression in my code, but when it executes. Nothing is created
I am trying to use 7-zip in my code for mutiple gig folders. I tried to use the following code, but all it does is execute and nothing is created. No error codes and in that the folder I was trying ...
1
vote
0
answers
93
views
On Windows, when using Python's subprocess to run 7-Zip, the terminal can not output the compression progress
In a Windows system, when using Python's subprocess to run 7z.exe, the terminal does not display the compression progress. However, when I run the command directly in the Command Prompt (CMD), I can ...
2
votes
0
answers
1k
views
Why does 7zip mmt work better with PowerShell's new Parallel?
I have a PowerShell (v7.3.7) script that iterates through files and archives them using 7-Zip. When using 7-Zip's multi-threading option -mmt, the script takes 180 seconds to execute in my case. ...
0
votes
1
answer
287
views
Where in the .XZ file is stored uncompressed file size?
I read XZ's specification and I want to get uncompressed size. There is nothing like this in the footer or header.
Am I supposed to:
read "Backward Size" from the header
calculate:
...
1
vote
0
answers
315
views
How do I solve "invalid header data" for py7zr?
I am attempting to create a generic backup program in python using py7zr. So far, it seems to be creating archives successfully, but they cannot be extracted. I have created the following test script ...
2
votes
1
answer
96
views
Unable to delete file after using SevenZip.openArchive method in java
In my endpoint I receive the content of a file as String in format base64.
Unzipping works fine with SevenZip library, no problems there.
But after executing this line
archive = SevenZip.openInArchive(...
-2
votes
1
answer
444
views
Move files within a ZIP archive [closed]
My Eclipse and Maven development environments are using a different directory structure, such that if I export my results into a JAR / ZIP file, the required directories are included, but at the wrong ...
0
votes
2
answers
590
views
How to create password protect zip file in nodejs using node-7z-archive package
Please anyone guide me, how We can create password protected zip file and extract.
using node-7z-archive https://www.npmjs.com/package/node-7z-archive
actually I want to create password protect zip ...
1
vote
1
answer
98
views
7zip move file in subfolder and change file name
I create a zip file in server and download.
It work by winrar unzip
file
|__test1
|__ test04.txt
But when I unzip by 7zip with file download from window server (it work with file download from ...
0
votes
1
answer
556
views
Java code for unzip 7z file with password
I have tried to unzip the 7z file in Java code but I'm getting "Bad 7z signature"
Any suggestions would be helpful..
I've used UTF-16LE and UTF-16 both throwing same error
Below is the code ...
0
votes
0
answers
536
views
Programmatically extracting a file over 1GB using 7 zip is too slow or hangs in between
Trying to extract files over 1 GB using 7zip library. Code in c#. When trying to extract manually it works well, bit through c# code it takes longer or sometimes even hangs.
Below code I'm using
...
0
votes
1
answer
769
views
Skip wrong password for 7z extraction Ubuntu
The task is to extract files from multiple password-protected archives stored in “IN” directory with 7zip package, passwords stored in list “PASS”. I have a problem: when the password is wrong 7zip ...
-1
votes
1
answer
311
views
Create Postgres password protected backup from C#
I want to create a password protected Postgres backup from C#
I tried next code but I think there is a more secure way: to pass backup directly from pg_dump to arhive without saving it on the disk and ...
1
vote
0
answers
406
views
Inno Setup - Get extraction progress of 7z archive
I have an NSIS installer script that I want to convert into Inno Setup.
NSIS version can show progress of 3rd party extraction(7z), also the files being extracted.
These are the codes to get and ...