Solved

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

Posted on 2006-06-30
5
1,373 Views
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
filename1.part1.rar
filename1.part2.rar
filename1.part3.rar
filename2.part1.rar
....


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?
david
0
Comment
Question by:davidgareau
  • 3
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
callrs earned 500 total points
Comment Utility
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 <>)
0
 
LVL 30

Expert Comment

by:callrs
Comment Utility
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\>

<Commands>
  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

<Switches>
  -             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
0
 

Author Comment

by:davidgareau
Comment Utility
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?

thanks
david
0
 
LVL 30

Expert Comment

by:callrs
Comment Utility
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/ ]
0
 

Author Comment

by:davidgareau
Comment Utility
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.
Thanks.

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"

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
Viewers will learn how to use the Hootsuite Dashboard.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now