GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Silently Copy Filenames

#1

Hi Guys,

I have a button to copy the filenames with an open parentheses from a set folder.

Go /TEST NEWTAB=findexisting
Select *'(*
Clipboard COPYNAMES=nopaths REGEXP "(.*)\.(.*)" "\1"
Go TABCLOSE

Can I do this without opening the /TEST folder?

Regards

Blueroly

#2

Try this:

Clipboard COPYNAMES=nopaths FILE /TEST/*'(* REGEXP (.+)\.([^.]*) \1
#3

Hi Leo,

There's a minor error in your code (/ instead of \) but once I worked that out it worked fine. Thanks for your help.

Clipboard COPYNAMES=nopaths FILE /TEST\*'(* REGEXP (.+)\.([^.]*) \1

Regards

Blueroly

#4

You can usually use either. Strange it mattered there, but glad it's working now.

1 Like