GP SoftwareTwitter
Opus FAQsManualCommandsObjects

How to copy selected file name without file extension to the clipboard

How to copy selected file name only without file extension to the clipboard?

Clipboard COPYNAMES=nopaths

This command copy the file name with the file extension. I want to copy the name without file extension. How to do that?

example: selected file name is abcd.doc I want to copy only abcd

As long as you don't mind it removing everything after the last dot in folder names as well as file names, you can do it using this:

Clipboard COPYNAMES=nopaths REGEXP (.+)\..* \1

If you want it to only affect folders, or handle more complex extensions (e.g. .part01.rar type extensions with multiple dots) then that's also possible, but more complex.

Thanks Leo, It's filled my want.