Use this button to copy the paths including the terminating backslash "" character.
<?xml version="1.0"?>
<button display="label">
<label>Copy Paths</label>
<tip>Copies the folder paths of all selected files and folders to the clipboard (includes terminating "\")</tip>
<icon1>#copyfilenames</icon1>
<function type="normal">
<instruction>Clipboard COPYNAMES REGEXP "(.*\\)([^\\]*)" "\1"</instruction>
</function>
</button>
Use this button to copy the paths excluding the terminating backslash "" character.
<?xml version="1.0"?>
<button display="label">
<label>Copy Paths - noterm</label>
<tip>Copies the folder paths of all selected files and folders to the clipboard (excludes terminating "\")</tip>
<icon1>#copyfilenames</icon1>
<function type="normal">
<instruction>Clipboard COPYNAMES REGEXP "(.*)(\\)([^\\]*)" "\1"</instruction>
</function>
</button>
Read This FAQ: How to add example buttons to your toolbars and menus
NOTE: The toolbar buttons above use an icon from this icon set: Opus 9 Unofficial Extra Icons.