Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8949

7-Zip Fails to Properly Unzip File via Context Menu and CMD, But Works in GUI

$
0
0

I'm currently encountering a problem with a .zip archive made using 7zip. Whenever I try to unzip it using the context menu (right click -> 7zip -> extract here) or using a bat script (or cmd) "C:\Program Files\7-Zip\7z.exe" e -y archive.zip -bb3 -slt I don't have any logs explaining(*) what is wrong with the process. My RAM is way far from being on full usage, it just uses 10gigs out of 32, I also have enough place on my machine storage.

BUT whenever I'm opening the 7zip GUI and navigate to my archive and then extract it from here, it works.

My archive is created through 7zip so I cannot use builtins Expand-Archive because it doesn't work through the context menu or the powershell as well. (It says the archive is empty)

My zip archive is not damaged because this exact same zip can be unzipped using cmd on another machine using the same version of 7zip.

Details :

7zip versions tested : 24.04 and 19.0 (first version used to write this script)

(*) Logs from CMD :

Cannot open the file as [zip] archiveThe file is open as [7z] archive--Path = D:\...\myArchive.zipOpen WARNING: Cannot open the file as [zip] archiveType = 7zPhysical Size = 713624835Headers Size = 297Method = LZMA2:20Solid = +Blocks = 3- archive.sql- another.sql 58% 1

When used in a longer bat script, it doesn't make the script stop. It just act as if the unzip went well and that it could be treated.


Viewing all articles
Browse latest Browse all 8949

Trending Articles