Skip to main content
1 of 2
kglr
  • 400.5k
  • 18
  • 488
  • 929

You can use CopyToClipboard:

Button["display text", CopyToClipboard["file name"], Appearance -> None]

CopyToClipboard >> Scope

"Copying a string copies the contents of the string."

Column[MapThread[Button @ #,CopyToClipboard @ #,Appearance -> None]&, 
  {{"display text 1", "display text 2"}, {"file name", "Alex E"}}]

enter image description here

enter image description here

kglr
  • 400.5k
  • 18
  • 488
  • 929