Remove a RAR/WinRAR Password Using the .bat File
Creating and utilizing a .bat (batch) file can automate the process of removing RAR/WinRAR passwords using CMD, offering a convenient alternative to manual execution.
Step 1: Copy this code and paste it into Notepad then save this file as .bat
@echo off
title WinRar Password Retriever
copy "C:\Program Files\WinRAR\Unrar.exe"
SET PASS=0
SET TMP=TempFold
MD %TMP%
:RAR
cls
echo.
SET/P "NAME=File Name : "
IF "%NAME%"=="" goto ProblemDetected
goto GPATH
:ProblemDetected
echo You can't leave this blank.
pause
goto RAR
:GPATH
SET/P "PATH=Enter Full Path (eg: C:\Users\Admin\Desktop) : "
IF "%PATH%"=="" goto PERROR
goto NEXT
:PERROR
echo You can't leave this blank.
pause
goto RAR
:NEXT
IF EXIST "%PATH%\%NAME%" GOTO SP
goto PATH
:PATH
cls
echo File couldn't be found. Make sure you include the (.RAR) extension at the end of the file's name.
pause
goto RAR
:SP
echo.
echo Breaking Password...
echo.
:START
title Processing...
SET /A PASS=%PASS%+1
UNRAR E -INUL -P%PASS% "%PATH%\%NAME%" "%TMP%"
IF /I %ERRORLEVEL% EQU 0 GOTO FINISH
GOTO START
:FINISH
RD %TMP% /Q /S
Del "Unrar.exe"
cls
title 1 Password Found
echo.
echo File = %NAME%
echo Stable Password= %PASS%
echo.
echo Press any key to exit.
pause>NUL
exit
Step 2: Then, Copy the RAR file/folder path
To copy the path right click on file/folder then from the menu select “Copy as Path” or just press “Crtl + Shift + C“
Step 3: Next, Double click on the .bat file
Now paste the file name and file/folder path on the CMD window
Step 4: Press the Enter button to execute the program.
How to Remove RAR/WinRAR Password Using CMD?
RAR files are encrypted with strong AES 256 or AES 128, depending on the version. Passwords are often set up for WinRAR files to ensure data security. However, people often forget or lose access to these files over time. To crack a forgotten RAR/WinRAR password, use Command Prompt, a command-line interpreter on Windows operating systems.
In this article, We’ll show how to remove the RAR/WinRAR password using Command Prompt.
Table of Content
- How to Remove RAR/WinRAR Password Using CMD?
- Method 1: Remove a RAR/WinRAR Password Using crack
- Method 2: Remove a RAR/WinRAR Password Using the .bat File