Combine zip files windows

Zip and unzip files

Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you work with zipped files and folders in the same way that you work with uncompressed files and folders. Combine several files into a single zipped folder to more easily share a group of files.

Locate the file or folder that you want to zip.

Press and hold (or right-click) the file or folder, select (or point to) Send to, and then select Compressed (zipped) folder.

A new zipped folder with the same name is created in the same location. To rename it, press and hold (or right-click) the folder, select Rename, and then type the new name.

Locate the zipped folder that you want to unzip (extract) files or folders from.

Do one of the following:

To unzip a single file or folder, open the zipped folder, then drag the file or folder from the zipped folder to a new location.

To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract All, and then follow the instructions.

To add files or folders to a zipped folder you created earlier, drag them to the zipped folder.

If you add encrypted files to a zipped folder, they’ll be unencrypted when they’re unzipped, which might result in unintentional disclosure of personal or sensitive information. For that reason, we recommend that you avoid zipping encrypted files.

Some types of files, like JPEG images, are already highly compressed. If you zip several JPEG pictures into a folder, the total size of the folder will be about the same as the original collection of pictures.

Как объединить / объединить zip-файлы?

за последние несколько месяцев я скопировал несколько папок данных в zip-файлы с еженедельными интервалами. Теперь я хотел бы объединить эти zip-файлы в один zip-файл, потому что большинство содержимого существующих zip-файлов-это просто разные версии одних и тех же файлов данных.

поэтому, если файл появляется в более чем одном из существующих zip-файлов, я хотел бы, чтобы последняя версия была в новом создаваемом zip-файле. Конечно, если файл появляется только в одном существующем zip-файле, то я хочу его в zip-файл также.

Я пытаюсь избежать необходимости распаковывать их по одному в рабочую папку, перезаписывать данные из старых zip-файлов данными из новых zip-файлов, а затем резипировать все в новый zip-файл.

из того, что я понимаю, pkzip будет сочетать сами zip-файлы, но есть ли надежный и быстрый бесплатный метод, о котором кто-нибудь может мне рассказать?

7 ответов

вам это не понравится, но: разархивируйте все в рабочую папку в правильном порядке, а затем заархивируйте результат наиболее эффективным способом.

в противном случае, вы будете в конечном итоге с большим количеством пустая трата процессорного времени:

  • Предположим ваш результат идет первым.zip’
  • все файлы с ‘2.zip’, ‘ 3.zip ‘ etc должен быть распакован, а затем снова молнии в ‘первый.zip’
  • в 2.zip ‘существует файл’ foobar.txt’ и in ‘ 3.zip-архив существует другой файл фубар.txt’. слияние его так, как вы хотите объединить это приводит к «сжать его X раз»
  • оглавление .zip находится в конце файла: вы добавляете больше контента (к середине
    .zip путем обновления файла посередине) и весь файл должен быть переписан

так, имхо просто использовать ‘распакуйте’ wiseley:

порядок распаковки важно, я не знаю ваших имен зип, но я бы извлечь новый zip-файл во-первых, опция «- u » распаковать перезаписывает только файлы, если они новее или создает файлы, если их еще нет. в результате вы распакуете только самые новые файлы и заархивируете результат только один раз.

просто используйте опцию-g ZIP, где вы можете добавить любое количество ZIP-файлов в один (без извлечения старых). Это сэкономит вам значительное время.

Это может быть не то, что вы ищете, но бесплатный инструмент сборки Ant включает в себя возможность слияния Zipfiles.

Я думал, что вы могли бы сценарий файлы извлекаются во временную папку.

Читайте также:  Сильно тормозит опера что делать windows 10

есть проблема с этой командной строке. Я не мог найти способ заказать распаковку архивов, поэтому старый архив может перезаписать новый архив. Эта проблема может быть решена с помощью unzipper имеет переключатель командной строки только перезаписать, если новее. В основном я использую 7-Zip, у которого нет такой опции командной строки.

кроме того, эта команда должна на всех zip-файлов находиться в одном каталоге. Не проблема, если все молнии имеют уникальные имена. Тем не менее, команда может быть изменена в соответствии с вашей ситуацией.

for /f %f in (‘dir /b *.zip’) do «c:\program files-zipz» x %f -oc:\testdir -r -aoa

чтобы изменить это, чтобы использовать другую программу распаковки просто заменить «c:\program files-zipz» x %f -oc:\testdir -r -aoa С любой командой, которую вы будете выполнять в каждом файле. Используйте %f в качестве места для хранения имени файла, который вы хотите распаковать.

Я попытался найти полированное приложение, бесплатное или иное, и на самом деле не нашел один.

надеюсь, это даст вам хороший старт и WinZip или что-то подобное может заботиться о проблеме перезаписи.

How to split & merge ZIP folders on Windows 10 with 7-Zip

ZIP archives make it easier to handle and move multiple files and folders. For example, if you want to email me several files at once, you can’t send them in a folder; you have to ZIP them up!

Devices treat ZIP folders as individual files, and this means that you get to manipulate them as one entity rather than a collection of files. With that out of the way, here comes a trickier scenario – How do you send multiple ZIP folders at once?

The answer is simple – put them in a ZIP folder. Yes, ZIP folders can contain other ZIP folders, and I’ll show you how to do this in this guide. Besides teaching you how to combine ZIP folders into one ZIP archive, you’ll also learn how to split up the ZIP archive.

Windows 10 allows you to create and manipulate ZIP folders, but for this article, we’ll use a freeware called 7-Zip. Read this tutorial to the end to learn how to combine and split ZIP folders using 7-Zip.

How to merge or combine ZIP files using 7-Zip

  1. Get all the ZIP archives that you want to merge and copy or move them to one folder in Windows Explorer.
  2. Click on one ZIP folder and press the CTRL + A key combination to select all the contents of this folder.
  3. Right-click on a selection and go to 7-Zip > Add to archive…

If you prefer not to use this method, you can navigate back one step, so that you’re in the directory that contains the new folder.

Please right-click on the folder itself and go to 7-Zip > Add to archive…. Ensure that only the ZIP folders you want to merge are in the folder because 7-Zip will include all the contents of the folder.

In the Add to archive window, give the combined ZIP folder a name and select a format (I went with the ZIP format in this example).

You have a bunch of other settings to make, here including encrypting the ZIP folder with a password. But if you don’t know what they are, you can leave them in their default states and hit the OK button when you’re finished.

On hitting the OK button, 7-Zip will merge all the selected ZIP folders into a new archive given the name you chose.

How to split ZIP folders using 7-Zip

If you have a ZIP archive that contains other ZIP folders, you may want to split it up to easily access each of these ZIPs.

To split ZIP folders using 7-Zip, right-click on the file and go to 7-Zip > Extract files…. By default, the program saves the output folder in the same directory as the original ZIP and names it with the name of the ZIP file.

However, you can change the output location and name of the file in the window that pops up. Here, you can also password-protect the folder. Adjust the settings as you wish and click on the OK button when you’re done.

Other options for splitting ZIP folders using 7-Zip are the Extract here and Extract to “name of zip. The former extracts the contents of your ZIP folder to your current directory. On the other hand, you can go with the latter option if you don’t wish to change the default output directory and folder name.

Читайте также:  Руководство пользователя windows media player

How to Compress Files to a ZIP Archive in Windows

Learn how to zip a file

«Zipping» in Windows is when you combine multiple files into a single file-like folder with the .ZIP file extension. It opens like a folder but acts like a file, in that it’s just a single item. It also compresses files to save disk space.

Learn how to create a .ZIP file in Windows.

Instructions in this article apply to Windows 10, Windows 8, and Windows 7.

Using File Explorer, navigate to where your files or folders that you would like to make into a ZIP file. These files may can anywhere on your computer, including external and internal hard drives.

Pressing Windows Key+E will open the Windows File Explorer.

Select the files you want to compress. If you want to zip all the files in a single location, you can use the keyboard shortcut Ctrl+A to select all of them.

If they are not in a single location, press and hold the left mouse button and drag over all the objects you want to select. The items you’ve selected will have a light-blue box around them, as seen here.

Press and hold the Ctrl key while selecting the files you want to zip. This will automatically select every file sitting between the two items that you clicked. Once again, all your selected items will be highlighted with a light-blue box.

Once your files are selected, right-click on one of them to reveal an options menu. Select Send to > Compressed (zipped) folder.

If you’re sending all the files in a particular folder, another option is to just select the entire folder. For example, if the folder is Documents > Email items > Stuff to send, you can go into the Email items folder and right-click Stuff to send to make the ZIP file.

If you want to add more files to the archive after the ZIP file has already been made, just drag the files right on top of the ZIP file and they’ll be added automatically.

Once you zip the files, a new folder appears next to the original collection with a big zipper on it, indicating that it has been zipped. It will automatically use the name of the last file you zipped.

You can leave the name as it is or change it to whatever you like. Right-click the ZIP file and choose Rename.

Now the file is ready to send to someone else, back up on another hard drive, or stash in your favorite cloud storage service. One of the best uses of zipping files is to compress big graphics to send through email, upload to a website, and so on.

How to combine / merge zip files?

For the last several months I have copied several data folders to zip files at weekly intervals. Now I’d like to combine those zip files into one zip file, because most of the contents of the existing zip files are just different versions of the same data files.

So if a file appears in more than one of the existing zip files, I’d like the newest version to be in the new zip file being created. Of course if a file appears in only one existing zip file, then I want it in the final zip file also.

I’m trying to avoid having to unzip them one by one to a working folder, overwriting data from older zip files with data from newer zip files, and then rezipping everything into a new zip file.

From what I understand pkzip would combine the zip files themselves, but is there a dependable and fast free method anyone can tell me about?

7 Answers 7

you won’t like it but: unzipping everything into a working folder in the right order, then zipping the result is the most effective way.

otherwise, you will end up with a lot of wasted CPU cycles:

  • assume your result goes to ‘first.zip’
  • every file from ‘2.zip’, ‘3.zip’ etc has to be unzipped and then zipped again into ‘first.zip’
  • in ‘2.zip’ exists a file ‘foobar.txt’ and in ‘3.zip’ exists another file ‘foobar.txt’. merging it the way you want to merge it leads to ‘compress it X times’
  • the toc of a .zip is at the end of the file: you add more content (to the middle of the
    .zip by updating a file in the middle) and the whole file has to be rewritten
Читайте также:  Ati mobility radeon hd 4500 series driver windows 10

so, imho just use ‘unzip’ wiseley:

the order of the unzipping is important, I don’t know the pattern of your zip names, but I would extract the newest zip file first, the ‘-u’ option of unzip overwrites only files if they are newer or creates files if not already there. as a result, you will unzip only the newest files and zip the result only once.

It may not be what you’re looking for, but the free Ant build tool does include the ability to merge Zipfiles.

Just use the -g option of ZIP, where you can append any number of ZIP files into one (without extracting the old ones). This will save you significant time.

Also have a look at zipmerge

zipmerge merges the source zip archives source-zip into the target zip archive target-zip . By default, files in the source zip archives overwrite existing files of the same name in the target zip archive.

I was thinking you could script the files being extracted into a temp directory.

There is problem with this command line. I couldn’t find a way to order the unzipping of archives, so an older archive may overwrite a newer archive. This problem may be overcome by using an unzipper the has a command line switch to only overwrite if newer. I mainly use 7-Zip which doesn’t have such a command line option.

Also, this command needs on all the zip files being in the same directory. Not a problem if all the zips have unique names. That said, the command can be changed to fit your situation.

for /f %f in (‘dir /b *.zip’) do «c:\program files\7-zip\7z» x %f -oc:\testdir -r -aoa

To change this to use another unzipping program just replace «c:\program files\7-zip\7z» x %f -oc:\testdir -r -aoa with whatever command you would execute on each file. Use %f as a place holder for the name of the file you want to unzip.

I tried looking for a polished app, free or otherwise and didn’t really find one.

Hopefully this will give you a good start and WinZip or something similar can take care of the overwrite problem.

If I remember correctly, pkzip was a command-line program.

There’s still a command-line version of ZIP which claims to be compatible with pkzip.

It’s called Info-ZIP and there should be a version for your OS.

Look for winzip command line on the net. Winzip has several versions of command line tools to fit whatever version of winzip you may may have installed. The command line tool WZZIP has a -f «freshen» option that will zip newer files only of those that match the name of a file in the summation output zip file.

Use WZunzip wraped in a FOR statement as shown above to unzip one file to a directory then WZzip -f to add those files to an output summation zip file. Then the FOR loop repeats to work on the next input file to output to the one and only summation output file. The order of the input files does not matter since WZzip -f will only add to the output file if the input data is newer than what is already in the output file. All files that do not exist in the output file will also be added. Then you may unzip the result to a folder and then zip it up again to obtain an efficiently packed result file. You can even do this automatically after the FOR loop at the end of the batch file.

Not the answer you’re looking for? Browse other questions tagged zip or ask your own question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Оцените статью