If One File=>Filename / If More Files=>Name of Parent Folder

Hello,

for creating some individual winrar-buttons I need some infos, depending on the number of files/folders selected in the active lister.

If only one item is selected, I need its name
If two or more items are selected, I need the name of their parent folder.

How could I solve this?

Thanks in advance.

Opus doesn't have any conditional logic, except within Rename scripts (which only see one filename at a time so aren't suitable either).

So to do this I think you'll need to make a button which passes all the selected items to an external VBScript (or similar) and have it decide what to do (which might include calling back into Opus to run some more commands via dopusrt.exe).

This simple script might be a good starting point if you want to try the script method:

[One Hotkey for 2 commands)

What a pity. But thanks anyway.