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.

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