Skip to main content

Questions tagged [zip]

Compression and archive format that stores one or more files into a single file, usually with a .zip file extension.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

zip -FF on split files quietly

I have a bunch of split zip files which is large size. Trying to -FF on the split files. During the process zip asks questions like "zip file.z002 not found" and asks to select different ...
Jimson James's user avatar
0 votes
0 answers
24 views

Excluding directory from zip cli command [duplicate]

NOTE TO MODERATOR: While it is true that there is a question out there that has several conflicting answers to this very question, as I have pointed out in a comment to that question, none of those ...
Dennis 's user avatar
  • 149
0 votes
1 answer
42 views

Tar extract doesn't work on Zip repos with submodules [closed]

Tar extract doesn't work on Zip repos with submodules: curl -L https://github.com/org/repo-with-submodules/archive/refs/heads/main.zip -o ~/Downloads/repo-main.zip tar -xvf ~/Downloads/repo-main.zip -...
Ridhwaan Shakeel's user avatar
0 votes
2 answers
62 views

extract a multifile .zip archive on Linux (with gunzip)

I have a large file in Wondows and neetd to transport it to a Linux server via the linux /tmp folder that has onlz limited capacity. In order to do so I created a zip with 7zip on my Windows host (...
vrms's user avatar
  • 199
0 votes
2 answers
74 views

Batch how to compress an .zip folder without root folder while also being portable

I'm trying to compress multiple separate folders to .zip (whether it be 7zip or PowerShell or tar) as well as being portable (as in the .bat can be anywhere) yes I looked at other posts but none of ...
Jimmy King's user avatar
-1 votes
1 answer
50 views

Hide files and folders with same name

I ran into an issue where I had to restart my computer during a large extraction process involving many zip files :(. All the zip files contain a folder that has the name of the zip file (minus .zip) ...
Brian Jester's user avatar
0 votes
0 answers
50 views

Extracting multiple archives with WinRAR where some are missing parts

I have a folder with a few thousand rar and zip files. Some are separated into multiple parts and others are not. My goal is to extract all of the files. The files are large and I expect this may take ...
jplank's user avatar
  • 1
0 votes
1 answer
101 views

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

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) &...
JohnKondo's user avatar
2 votes
3 answers
1k views

Changed file and folder names within a compressed .zip email attachment received from Outlook

I am using Outlook and I received an email containing a compressed .zip file. When I download and try to extract its contents, the names of all the files and folders contained inside the compressed ....
kostask's user avatar
  • 71
2 votes
2 answers
238 views

Windows 11 PowerShell zip files except the excluded file and folder paths

I'm trying to zip using PowerShell but it's not excluding the files listed in the excluded_paths. I want to especially exclude all __pycache__ folder occurrences that can be nested in different levels ...
Macky's user avatar
  • 93
0 votes
0 answers
366 views

File not found or no read permission when trying to compress zip

On Windows 11, when I right click a folder and then choose Compress to Zip file, I get error. Although it makes no sense to close all programs that use this folder, I did close everything and nothing ...
Macky's user avatar
  • 93
0 votes
1 answer
276 views

How to unzip a zip from macOS on Windows and is the “__MACOSX” folder in a Mac-made Zip the right place to look for the Zip contents?

Somebody sent me a bunch of PDF files as a Zip from their Mac laptop. Now I am trying to extract the PDF files. I am on Windows 10 I can extract a folder __MACOSX and inside it, a folder containing ...
Alexander Gelbukh's user avatar
0 votes
3 answers
157 views

Is there any way to compare zipped folders to unzipped file directory?

I know that Windows Explorer, 7-Zip, Beyond Compare, and others can look into a zipped directory to see the file structure and file names. Is there any way to compare those file names to the unzipped ...
Medajor's user avatar
0 votes
0 answers
56 views

WinRAR - Span Archives instead of splitting (Internet Archive)

I'm having a small issue trying to back up data to the Internet Archive. I have tried to used 7zip to split files into certain sizes (such as 7G or 25G) to upload better, but IA won't accept ...
Noah888's user avatar
0 votes
1 answer
61 views

Exclude all folders containing "discarded" with 7z

When I do 7z a test.zip -x!*discarded* test with test/ test/a.txt test/subfolder/ test/subfolder/a.txt test/subfolder/discarded/ test/subfolder/discarded/a.txt test/subfolder2/a.txt test/subfolder2/...
Basj's user avatar
  • 1,916
1 vote
0 answers
34 views

Determine format of uncompressed ZIP file with ffprobe

I am working on a project where I need to handle ZIP archives that contain media files. Specifically, I have two files, video1.hevc and video2.mp4. For testing purposes, I created two ZIP archives ...
Gman's user avatar
  • 23
0 votes
1 answer
47 views

How to encrypt folder files using zip.exe [closed]

Example -path1 - desktop/file_source Path2 - desktop/e_data_source. How can we encrypt files from desktop/file_source to desktope_data_source path using zip.exe in cmd. Could you please help me.? Is ...
Siri chandana's user avatar
1 vote
2 answers
175 views

Why does zip --exclude only exclude files in the folder but not the folder itself?

I have the following command run in the bash shell which excludes the files in the folder scripts/. I tried the answer in Zip command for excluding directories and files but unfortunately it did not ...
Macky's user avatar
  • 93
0 votes
1 answer
163 views

Split zip archives using WinRar vs 7-Zip

I created a split zip archive using WinRar and 7-Zip. WinRar creates archive.zip archive.z01 archive.z02 .... 7-Zip creates archive.zip.001 archive.zip.002 ... With Total Commander I could enter(CTRL+...
user4691's user avatar
  • 171
1 vote
2 answers
561 views

Preventing Windows from displaying "insert last disk" message

I inserted a USB stick into my PC. The USB stick contained a single ZIP file only (not part of multiple ZIP files). The ZIP file was somehow corrupted. Windows Explorer showed this message immediately ...
Thomas Weller's user avatar
0 votes
0 answers
65 views

Zipping a folder and sub-directories not working without sudo?

I wrote a python script using Amazon's AWS Boto3 SDK to download files from an S3 bucket and puts them in a folder (in a directory within my home dir). For reference, the function I used was the s3 ...
Prithvi Boinpally's user avatar
2 votes
2 answers
742 views

How do I extract a multi-level compressed file (recursion) with 7-zip in one command?

If possible, how can a file that's been compressed in multiple levels, like the following example.7z file, be extracted in a single command? Assume there is only one final uncompressed file. example....
Nathan J.B.'s user avatar
1 vote
1 answer
444 views

How to modify internal XML of PPTX files without corrupting them?

I opened this question in SO site but it seems is more appropiate here. Inside an .pptx file we have this structure I'm trying to edit the content of internal slide2.xml in ..\ppt\slides. The slide2....
Rasec Malkic's user avatar
1 vote
1 answer
467 views

Add a top level empty directory to a zip file on Windows

When creating a zip file with Windows, it gives an error message if adding an empty folder and excludes it. It is no problem if you add a directory containing a child directory that is empty, but if ...
Pluto's user avatar
  • 161
1 vote
1 answer
257 views

Compress each directory to its own Zip file from command line

I have a directory of directories. I want to compress each of them in to its own zip file, keeping the same name. I don't want it to be recursive, I just want to compress dozens of folders in the same ...
Will Hanley's user avatar
0 votes
2 answers
217 views

If I ZIP a folder in NTFS, is the ZIP file NTFS?

If I zip a folder from an NTFS partition, can it be extracted on a device or OS that can't read the NTFS filesystem? More generally, do zip files preserve the filesystem of the unzipped folder in some ...
igmkjp's user avatar
  • 11
1 vote
2 answers
239 views

What's the minimal (and fastest) way to touch a big file just enough to change it's HASH?

I have big files (.iso, .mkv, etc) for which I need to change the HASH, so that they are not detected in a potential DHT network during transfer. One obvious way is to add them to a zip file and break ...
Serban's user avatar
  • 175
0 votes
1 answer
173 views

Using the built in zip extraction in Windows 11, extracting to a network share on samba doesn't allow execution of a program

Using the built in zip extraction in Windows 11, extracting to a network share on samba doesn't allow execution of a program, however. Extracting with Winrar works fine. I have a zip file with an ...
MikeP's user avatar
  • 121
1 vote
0 answers
225 views

Batch to rar files based on total size

Looking for a batch script that allows to get files from a folder (.\source) and create a .rar file on other folder (.\target), with those files, but with a maximum given size of the all files inside ...
jt99's user avatar
  • 11
0 votes
3 answers
199 views

How to batch create folders to move in a .zip file and a .pdf sharing the same name (minus extension)

I have about 1000 ESRI shapefiles and each one is associated with a written report that I have saved as a pdf. The zipped file and the associated pdf share the same filename (minus the extension). I ...
Steve T's user avatar
  • 11
9 votes
2 answers
3k views

Cannot Zip folder that is too deep in subfolders

I am unable to zip a folder if the folder is too deep in subfolders. My company uses Dropbox, so we have a lot of folders in folders. For example, a path to a folder might look like this: C:\Users\...
AndrewH's user avatar
  • 203
0 votes
0 answers
148 views

File shows up in zipinfo but not unzip?

I have a huge (~300GB) zipped archive and I'm trying to extract a few files from it while ignoring the rest. Running zipinfo on the archive brings up a list of files but when I try to extract one of ...
Josh Tint's user avatar
0 votes
0 answers
567 views

A zip file which shows all files in archive root directory from subfolders in a windows file explorer view

Some one shared me a zip file shown in the windows file explorer that all the files in the subdir are placed in the archive root dir. The hierachy is like the following box: │ fileone.txt......dir/...
Wenjay Chang's user avatar
0 votes
1 answer
1k views

absolute fastest way to zip (not compress) larger files in 7zip?

I need to know the absolute fastest way to zip (not compress) larger files in 7-Zip. By large files I mean 1Tb or so, this will be done often (multiple times per day). I tried WinZip because it has ...
Stugots2's user avatar
0 votes
0 answers
102 views

Is it possible to recover a zip file corrupted by GnuPG?

I recently started encrypting a zip file with: gpg --symmetric my_file.zip It was taking a long time - the archive is about 300 MB - and so I decided to cancel the operation part way through. The zip ...
chancellorofpaphos's user avatar
0 votes
1 answer
736 views

How to prevent Windows from throwing an error everytime it tries to copy a file named with illegal characters?

I'm extracting a medium sized ZIP file which contains thousands of tiny files with different names. Some of these files have names which include illegal character like ":". This causes ...
YEp d's user avatar
  • 3
1 vote
0 answers
360 views

Creating a script for Windows 11 to gzip some files using 7-zip then move and replace them in another folder

I have the following directory structure: Parent Folder: Project Children of Project: data, rawData Inside of rawData I have: index.html, settings.html, user.html, script.js, style.css and other files....
George Florian's user avatar
0 votes
2 answers
173 views

Extract compressed file - Autohotkey

I have WinRar installed and I would like to know if the program has command line functions to extract the compressed files using a hotkey with autohotkey. I haven't found this, so I've seen other ...
Elermino's user avatar
0 votes
2 answers
2k views

How can I extract a .zip file with 7zip with a cmd command?

I have the following problem: I have a test.zip This test .zip should be extracted to a "test" folder. But i have a test1, test2..., test23. So no matter how its named, the folder should ...
Roman's user avatar
  • 1
1 vote
1 answer
105 views

Transfer a .zipped .CHM file still make it unreadable

I create a .CHM file on a online computer at vagon.io, and then transfer it to my local computer. But when opening it, I get "Unknown Publisher" error and the page contents are blank. I find ...
alancc's user avatar
  • 177
0 votes
0 answers
598 views

Optimizing 7z command line options for speed and compression ratio of large .bak files

I am currently dealing with a multitude of .bak files, each averaging around 300GB in size, and I need to compress them using the 7z command line. My primary objective is to strike a balance between ...
m'hd semps's user avatar
2 votes
2 answers
289 views

opening a self-opening, password protected archive with .zip.exe extension on a Mac

I am trying to open a password protected file: unzip -v -P password123 filename.zip.exe The output I get is: Archive: filename.zip.exe End-of-central-directory signature not found. Either this file ...
Daniel 's user avatar
0 votes
1 answer
2k views

Unix: zip folder ignoring folder structure and excluding a subdirectory

I want to create a zip ignoring the folder structure, and excluding the content of a specific subfolder. I have tried: zip -rj /path/to/target.zip /path/to/source -x "/path/to/source/subfolder/*&...
Alessandro C's user avatar
0 votes
1 answer
474 views

zip each file in a folder with max. 100 MB and use random names for the zip file

is there a way or multiple ways how to zip the files in each folder and save it with a random chosen name? An example would be: i have three main folders with names A, B, C. Each folder contains a ...
Crues's user avatar
  • 1
2 votes
1 answer
848 views

How to verify that multipart zip file is valid

I want to verify that a multipart zip file that I've created is valid, but because of the 4 GB output limit imposed by my filesystem, I am unable to do so. I used the following command to create a ...
b00kgrrl's user avatar
  • 123
0 votes
1 answer
115 views

Delete a case insensitive filename from a .zip file

I appreciate the feedback, especially about asking better questions. I've been reading more about better etiquette here, and hope I'm not breaking any rules now. But I realize I worded my original ...
user160222's user avatar
4 votes
3 answers
1k views

How to get zip to update file in an archive even if the file on the filesystem is older

If I have the following zip: my.zip |- folder | `- to-update.txt `- some-other-file.txt and a folder structure: working-directory `- folder `- to-update.txt I wish to copy the file to-update....
Druckles's user avatar
  • 2,187
1 vote
1 answer
392 views

exe file does not open after extracting from an archive

I came across a very strange situation for me. I transferred all of the files uploaded on a disk with medical scans (CAT scan) to my flash drive and then from the flash drive to my PC. These are the ...
Math Student's user avatar
0 votes
1 answer
2k views

Zip file to verify if not modified

I want to zip source code of my application and provide it to my client. I want to somehow assign to it an id or whatever which would describe the status of zipped files in official agreement between ...
Arie's user avatar
  • 103
0 votes
0 answers
163 views

Why might I not be able to delete a file from an unextracted zip folder?

I have a zip folder (40-50GB) that contains a set of data files and a single (1 KB) .ahk script. The .ahk script was used to unencrypt the data files in a folder before creating a zip of that folder ...
lampShadesDrifter's user avatar

1
2 3 4 5
24