How To Glue An Archive

Table of contents:

How To Glue An Archive
How To Glue An Archive

Video: How To Glue An Archive

Video: How To Glue An Archive
Video: how to glue 2024, December
Anonim

Many popular archivers such as 7Zip, WinRar and others, when archiving, allow you to create an archive split into several files. At the same time, their names look something like this (for 7Zip): xxx.7z.001 xxx.7z.002 xxx.7z.003, etc. To "glue" them back into one xxx.7z file, do the following.

How to glue an archive
How to glue an archive

Instructions

Step 1

Create a new folder with any name. Copy the files to be merged into it. Copy, not transfer. Do not write other files and folders into it. Missing numbers (001, and then 003) should not be. You can't lose the last file either. Otherwise, glueing is useless, the archive will still be broken and will not be unpacked.

Step 2

If the files to be glued are large, make sure that there is enough free space on the disk where they were recorded to accommodate the glued file. Its size will be exactly equal to the sum of the sizes of the files-pieces.

Step 3

Launch notepad or another text editor. Create a new file in it. Type the text for the command line: copy_ / b_xxx.7z.001 + xxx.7z.002 + xxx.7z.003_xxx.7z, where replace xxx with a specific name for your case, and all your detail files need to be summed up. The order is just that. In this case, the sum changes when the places of the terms are changed! When typing, keep in mind: - where there are underscores, you must type spaces;

- there should be no spaces in other places, there should be one line, line breaks are prohibited;

- if the file name itself contains spaces, for example xxx yyy, then all names will have to be written in quotes: copy_ / b_ "xxx yyy.7z.001" + "xxx yyy.7z.002" + "xxx yyy.7z.003" _ "xxx yyy.7z"

Step 4

Save the typed text file in the same folder where your archives to be glued are located, under the name GlueFiles.bat. The text before point can be anything, after point bat and nothing else. (GlueFiles is just "glue files").

Step 5

Close the text editor, open the folder where you saved the GlueFiles.bat file and launch it by clicking on it. If the files to be glued are large (hundreds of megabytes), the gluing can take a significant amount of time. The "build" process will be displayed in a black console window.

Step 6

Make sure that you have a file xxx.7z, and its size in bytes is exactly the sum of the sizes of the files that you merged. If something is wrong, then reopen the GlueFiles.bat file through the editor and check if you typed everything correctly.

Step 7

If you just need to extract the part files from the archive, then gluing is not necessary. Ask the archiver to unzip the first file xxx.7z.001, he will do everything right himself.

Recommended: