search
HomeCommon ProblemHow to unzip all archives in a folder and its subfolders at once

Suppose you have about 100 archive files in rar or zip format spread across multiple directories. Of course, it is not an easy task to unzip all these files by right-clicking on each file and then clicking on the "Extract" option. Obviously, you're here to automate this process in some way. Well, we've got your back.

In this article, we explain in detail how to easily unzip all archives in a folder and its subfolders at once.

Note: Please make sure the 7-Zip software is installed on your machine. If not, you can get it from here.

Step 1: On the taskbar, click the "Search" icon.

How to unzip all archives in a folder and its subfolders at once

Step 2: In the search bar, type notepad and select from best matches Select the Notes application in the section.

How to unzip all archives in a folder and its subfolders at once

Step 3: When Notepad opens, copy and pastethe following code.

FOR /D /r %%F in (".") DO (推送 %CD%cd %%FFOR %%X in (*.rar *.zip) DO ("C:\Program Files-zipz.exe" x "%%X")流行音乐)

Note: This code will unzip all archives present in the folder where this batch script is located. It will also recursively extract all archives present in all subfolders within the main folder.

How to unzip all archives in a folder and its subfolders at once

Step 4: After copying the code, click on the "File" tab at the top. Then click on the Save as option.

How to unzip all archives in a folder and its subfolders at once

Step 5: In the "Save as" window, navigate to the containing the file The location of the folder.

Once you reach that location, give your file a name. But make sure to specify the file extension as .bat.

Next, set Save as type to All Files (*.*).

After completion, click the Save button.

How to unzip all archives in a folder and its subfolders at once

Step 6: Now go to the location where you saved the batch file. Double click on it to execute it.

How to unzip all archives in a folder and its subfolders at once

Step 7: If you see now, the zip file in the above screenshot has been successfully decompressed.

NOTE: If you go into subfolders, you will be able to see that the archives in those subfolders have also been extracted.

How to unzip all archives in a folder and its subfolders at once

The above is the detailed content of How to unzip all archives in a folder and its subfolders at once. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:云东方. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools