Thank you for the heads-up! it works great nowIt 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.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
Here is the button I tested with:You have to change the path in the WinRAR.exe line to your path.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
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".

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