Solved

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

Posted on 2006-06-30
5
1,381 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
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 <>)
0
 
LVL 30

Expert Comment

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

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

thanks
david
0
 
LVL 30

Expert Comment

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

Author Comment

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intranet building Software 8 115
Can I download Google sheets program to my PC? 13 84
Burning ISO Win/Mac 21 55
Chrome: How to show the Bookmarks bar? 4 32
If your app took Google’s lash recently, here are the 5 most likely reasons.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

778 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