Home > Common Problem > body text

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

WBOY
Release: 2023-04-15 09:55:05
forward
4902 people have browsed it

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")流行音乐)
Copy after login

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!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!