Un-RAR multiple files with same password, without re-entering password every time.

Posted on 2006-06-30
Medium Priority
Last Modified: 2011-10-03
I have a thousand or so .rar files and use WinRAR 3.x and would like to un-rar the files.
They all have the same password.

Most are in sets of 3 so that they have

So I highlight te part1 of each file and right-click and choose to extract here. I am asked for the password for each and every set of 3 files.
I want to extract all using the same password.  How can I do this?
Question by:davidgareau
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 30

Accepted Solution

callrs earned 2000 total points
ID: 17022054
Took over an hour, but found it lol. First tried  Winrar command line tool, but no luck. Then Picozip command line tool. Its manual is very user-unfriendly - won't let you do a decent search or scroll with mouse. (But Picozip is otherwise is one of the best zip/rar/etc. utilities)

Finally found this gem:
http://www.sharewareplaza.com/UnRAR-for-Windows-download_25684.html     UnRAR for Windows 3.50 - Command line freeware UnRAR for Windows

Sample use that I just tested & works:
unrar e -p<password> <rarfile>
(without the <>)
LVL 30

Expert Comment

ID: 17022080
You can put the unrar commands into a batch file. E.g.

This is just basic (will extract into same folder) but it can be changed to create new folders (part1 part2 part3) etc for the extracts:
for %a in (*.rar) do unrar e -p<password> %a  <path>

(Can run above from command line, or use %%a not %a if running from batch file)


UNRAR 3.50 freeware      Copyright (c) 1993-2005 Alexander Roshal

Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>

  e             Extract files to current directory
  l[t,b]        List archive [technical, bare]
  p             Print file to stdout
  t             Test archive files
  v[t,b]        Verbosely list archive [technical,bare]
  x             Extract files with full path

  -             Stop switches scanning
  ac            Clear Archive attribute after compression or extraction
  ad            Append archive name to destination path
  ap<path>      Set path inside archive
  av-           Disable authenticity verification check
  c-            Disable comments show
  cfg-          Disable read configuration
  cl            Convert names to lower case
  cu            Convert names to upper case
  dh            Open shared files
  ep            Exclude paths from names
  ep3           Expand paths to full including the drive letter
  f             Freshen files
  id[c,d,p,q]   Disable messages
  ierr          Send all messages to stderr
  inul          Disable all messages
  ioff          Turn PC off after completing an operation
  kb            Keep broken extracted files
  n<file>       Include only specified file
  n@            Read file names to include from stdin
  n@<list>      Include files in specified list file
  o+            Overwrite existing files
  o-            Do not overwrite existing files
  oc            Set NTFS Compressed attribute
  ow            Save or restore file owner and group
  p[password]   Set password
  p-            Do not query password
  r             Recurse subdirectories
  ri<P>[:<S>]   Set priority (0-default,1-min..15-max) and sleep time in ms
  ta<date>      Process files modified after <date> in YYYYMMDDHHMMSS format
  tb<date>      Process files modified before <date> in YYYYMMDDHHMMSS format
  tn<time>      Process files newer than <time>
  to<time>      Process files older than <time>
  ts<m,c,a>[N]  Save or restore file time (modification, creation, access)
  u             Update files
  v             List all volumes
  ver[n]        File version control
  vp            Pause before each volume
  x<file>       Exclude specified file
  x@            Read file names to exclude from stdin
  x@<list>      Exclude files in specified list file
  y             Assume Yes on all queries

Author Comment

ID: 17024143
When I unrar'd the file you linked to for download, Ad-Aware found a monitoring process in it!  I would rather stick with WinRAR as I've used it for a while, and get no such spyware-type problems.

any ideas why I got that?

LVL 30

Expert Comment

ID: 17024178
UnRAR for Windows 3.50 is actually made by WinRar.
The official winrar is at www.rarlab.com. Click "Dealers" link in the list at left side.
Takes you to http://www.rarlab.com/registration.php which links to www.win-rar.com which is linked from the link I gave you. Clink! lol. And if you look at where the download links to, it's files.rarlab.com.

Anyway, sorry for the run around, but Winrar didn't make it clear that the winrar command line won't unrar files, that you need their unrar instead.

Here's the official link, which will get you the same file: http://www.rarsoft.com/rar_add.htm -> http://www.rarlab.com/rar/unrarw32.exe.

[You may find a GUI that does the same thing. Google for: unrar for windows E.g. http://www.pewtersoftware.com/winunrar.html  http://unxutils.sourceforge.net/ ]

Author Comment

ID: 17025390
I see that unrar is actually the command-line .exe for my already installed WinRAR 3.4, so I did the following from a DOS prompts and it worked good.

C:\Program Files\WinRAR>unrar e -pmyPassword "C:\Documents and Settings\david\D
esktop\RS Downloads\Pics\*.part1.rar" "C:\Documents and Settings\david\Deskt
op\RS Downloads\Pics"


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question