Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3808

Total Commander (English) • Re: Help with TC button parameter for WINRAR

$
0
0
2petermad

petermad wrote: ↑Friday 08-11-2024, 03:29:31
a %P%O.rar @%WF

thanks for the code, When I try to run it with the attached parameter, I get the following WINRAR error:
https://i.imgur.com/kUl24JL.png
It looks like you are inside test.rar when you use the command - you have to place the cursor ON test.rar but NOT press Enter to go into it. And you have to mark some files.

Here is the button I tested with:

Code:

TOTALCMD#BAR#DATA%COMMANDER_PATH%\PACKERS\RAR\WinRAR.exea %P%O.rar @%WFwcmicons.dll,30Add selected files to RAR archive with name as file under cursor-1
You have to change the path in the WinRAR.exe line to your path.
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
Thank you for the heads-up! it works great now :)
Your previously suggested parameter was exactly the same, so I was trying to compare to understand why it is working now.
In addition to WinRAR path "%PROGRAMFILES%/WinRAR/WinRAR.exe", I always used to add the "Start path: "%PROGRAMFILES%/WinRAR/
turn out it was the cause of the error.

I always thought the Start path should be added, but it seems that I was mistaken.
It would be great to know when it is appropriate to add the Start path and when it is not?

Statistics: Posted by leo007 — 2024-11-09, 06:27 UTC



Viewing all articles
Browse latest Browse all 3808

Trending Articles