WinRAR Parameter to Extract (all) Here?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
salam2009
Junior Member
Junior Member
Posts: 17
Joined: 2015-05-16, 01:29 UTC

WinRAR Parameter to Extract (all) Here?

Post by *salam2009 »

Hey guys,
I use this parameter: x %P%N "%P" with a custom hotkey to extract compressed files to the source folder via WinRAR in Total Commander.
The problem is that this parameter extracts only one compressed file at a time!
Any thoughts to change the parameter which would make it extract multiple files at once to the directory's root?
Your help is absolutely appreciated :)
Thank you!
Cheers,
Salaam
User avatar
nsp
Power Member
Power Member
Posts: 1953
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: WinRAR Parameter to Extract (all) Here?

Post by *nsp »

salam2009 wrote:Hey guys,
I use this parameter: x %P%N "%P" with a custom hotkey to extract compressed files to the source folder via WinRAR in Total Commander.
The problem is that this parameter extracts only one compressed file at a time!
Any thoughts to change the parameter which would make it extract multiple files at once to the directory's root?
Your help is absolutely appreciated :)
Thank you!
Cheers,
Salaam
unrar does not allows to unrar multiple files (unless it is multipart) at once.

If you use internal unrar if you select multiple rar file, you can unrar all in place if you set "." as target.
If you want, you can also use TCBL to process all files:

Code: Select all

program:<path to>\tcbl.exe
parameter: %L "<path to>\unrar" x $f "%P"
you can also use temporary batch file or powershell script ....
salam2009
Junior Member
Junior Member
Posts: 17
Joined: 2015-05-16, 01:29 UTC

Post by *salam2009 »

@nsp
No, it does actually!
I can easily extract all different rar files with a single right click=>Extract Here (the standard way).
But with my parameter, WinRAR can only extract one file while multiple ones are selected then pressed with the hotkey!
mrle
Junior Member
Junior Member
Posts: 58
Joined: 2005-04-25, 21:44 UTC

Post by *mrle »

Make .bat file?

... for example:

--------------------------

"%commander_path%\Apps\WinRAR\WinRAR.exe" e "%commander_path%\foo\somefile.rar" "%commander_path%\foo\" -o+
"%commander_path%\Apps\WinRAR\WinRAR.exe" e "C:\Program Files\foo1\somerarfile1.rar" "C:\Program Files\foo1\" -o+
"%commander_path%\Apps\WinRAR\WinRAR.exe" e "D:\folder\somerarfile2.rar" "D:\folder\" -o+
...
salam2009
Junior Member
Junior Member
Posts: 17
Joined: 2015-05-16, 01:29 UTC

Post by *salam2009 »

@mrle
Thanks for the idea but I need a specific change in my parameter to directly extract files using a hotkey!
User avatar
nsp
Power Member
Power Member
Posts: 1953
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

salam2009 wrote:@nsp
No, it does actually!
I can easily extract all different rar files with a single right click=>Extract Here (the standard way).
But with my parameter, WinRAR can only extract one file while multiple ones are selected then pressed with the hotkey!
Read winrar documentation for command line and find by yourself the parameter or ask to rarlab support !
If you come to the same conclusion as us read our proposition.
mrle
Junior Member
Junior Member
Posts: 58
Joined: 2005-04-25, 21:44 UTC

Post by *mrle »

^^


I don't understand you.

In TC already exists "cm_UnpackFiles" command with "Alt+F6" hotkey.
You only need to delete path from TC dialog box (path to target directory) to unpack all files, from all selected archives to source folder.

----------------------------------------------------

Or you want to do that with WinRAR?

Then ...

Command: %Commander_path%\Apps\WinRAR\WinRAR.exe e *.rar *.*
Parameter: %P%N

So ...

You can add something like this in usercmd.ini

-------------------------------------------------------------------------------
[em_UnpackToFolder]
cmd=%Commander_path%\Apps\WinRAR\WinRAR.exe e *.rar *.*
param=%P%N
menu=Unpack to Folder
-------------------------------------------------------------------------------

... and assign any hotkey you want to em_UnpackToFolder command.
salam2009
Junior Member
Junior Member
Posts: 17
Joined: 2015-05-16, 01:29 UTC

Post by *salam2009 »

@nsp
I prefer WinRAR extraction over internal TC & batch methods.

@mrle
Your parameter worked like a charm!
How about the codes for extracting multiple files in "subfolders" with their names in the source directory?
Thanks a lot buddy :)
Last edited by salam2009 on 2015-05-16, 21:01 UTC, edited 1 time in total.
mrle
Junior Member
Junior Member
Posts: 58
Joined: 2005-04-25, 21:44 UTC

Post by *mrle »

^

WinRAR.exe e -ad *.rar *.*

You have everything in WinRAR Help (WinRAR.chm), as @nsp said.
salam2009
Junior Member
Junior Member
Posts: 17
Joined: 2015-05-16, 01:29 UTC

Post by *salam2009 »

^^

That one also did the trick.
I checked WinRAR Help before I came here, but honestly I couldn't get them to work!
Now, extracting files would be much easier for me thanks to you!
Have a wonderful day :P
Cheers ..
Post Reply