The button below copies the lister's current path to the clipboard.
If you want to copy the paths of selected folders and/or filenames instead, please see here instead:
Directory Opus 10 & above:
The button is part of the default configuration, in the Edit -> Copy Other menu.
It uses the same command as mentioned for Opus 9, below, but is already there for you to use it.
Directory Opus 9:
The button uses the Clipboard SET command which was new to Opus 9. The command is:
@nofilenamequoting
Clipboard SET {sourcepath$|noterm}
Here's the full button which you can copy to the clipboard and then paste into your toolbar. (To do this, enter Customize mode, then right-click some empty space on the toolbar and select Paste.)
<?xml version="1.0"?>
<button display="both">
<label>Copy Folder Path</label>
<icon1>#clippasteshortcut</icon1>
<function type="normal">
<instruction>@nofilenamequoting</instruction>
<instruction>Clipboard SET {sourcepath$|noterm}</instruction>
</function>
</button>
Directory Opus 8:
Opus 8 users can do something similar by replacing both lines with this alternative command:
@runmode hide
SetClip.exe {sourcepath$|noterm}
You will need to get my SetClip utility if you don't have it already. Opus 9 users do not need SetClip.exe as a similar command is now built-in to Opus.