Batch Unzip Script for WinRAR

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;

  • Copy the below script in a text file and save it as “batchunzip.bat“.
  • Copy the bat file to the folder where all the zip files are stored.
  • Double click the bat file and voila!, all the zip files are extracted, retaining the folder structure inside the zip.

@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

Hope this helps you.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s