Silently Copy Filenames

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

Try this:

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

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

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

1 Like