---
title: "Batch Unzip Script for WinRAR"
description: "Extracting multiple zip files at a time can be a time consuming process. To save time, you can automate the process by creating a simple batch script to unzip multiple files in one go."
publicationDate: 2017-11-04
category: "Scripts & Templates"
authorName: "Lavneet Bansal"
originalPublication: "Audit Monk"
originalUrl: "https://auditmonk.wordpress.com/2017/11/04/batch-unzip-script-for-winrar/"
featuredImage: "/images/auditmonk/batch-unzip-script-for-winrar.webp"
draft: false
tags:
  - "batch scripts"
---

Extracting multiple zip files at a time can be a time consuming process. To save time, you can automate the process by creating a simple batch script to unzip multiple files in one go. I have compiled (I'm not the author) a script to automate the task of extracting multiple zip files using WinRAR.

Use the below script to unzip multiple files using WinRar;
<ul>
	<li>Copy the below script in a text file and save it as "<strong>batchunzip.bat</strong>".</li>
	<li>Copy the bat file to the folder where all the zip files are stored.</li>
	<li>Double click the bat file and voila!, all the zip files are extracted, retaining the folder structure inside the zip.</li>
</ul>
<blockquote>@echo off
setlocal enableextensions disabledelayedexpansion
set "rarCmd=%programFiles%\WinRAR\WinRAR.exe"

for /r "%cd%" %%a in (*.zip) do "%rarCmd%" x -or -y "%%~fa" * "%~dp0%%~na\"

endlocal</blockquote>
Hope this helps you.
