If you are looking for software to use, go to Huajun Software Park! software release

How to compress files into multiple files with 7-zip?

Author: Xiaoyuer Date: 2024-05-11

7-Zip
7-Zip-24.08 latest version

Compression and decompression Storage size: 2.84 MB Time: 2009-02-04

Software introduction: 7z decompression software) compression software encryption 7-zip (7z decompression software) FAQs 1. How to use software to compress a large file to...

Download now

1. First create a new folder "Multiple File Compression" and put the files that need to be compressed into it.

2. Create a new txt text in the "Multiple File Compression" folder and fill in the following code:

If multiple <files> are compressed into 7z format codes at the same time

for %%X in (*) do "C:Program Files7-Zip7z.exe" a "%%~dpnX.7z" "%%X"

If multiple <files> are compressed into zip format codes at the same time

for %%X in (*) do "C:Program Files7-Zip7z.exe" a "%%~dpnX.zip" "%%X"

If multiple <folders> are compressed into 7z format codes at the same time (note the difference)

for /d %%X in (*) do "c:Program Files7-Zip7z.exe" a "%%X.7z" "%%X"

If multiple <folders> are compressed into zip format codes at the same time

for /d %%X in (*) do "c:Program Files7-Zip7z.exe" a "%%X.zip" "%%X"

3. Save the txt text file and change the file suffix txt to bat. Double-click to run the .bat file. It cannot be run as an administrator.

4. When this window appears, compression is in progress.

How to compress files into multiple files with 7-zip?

That's it7-zipCompress files into multiple how-to tutorials and more7-zipPlease go to the software related tutorialsHuajun Software Park Software Tutorial Area

Related articles