Copy content of TXT file to clipboard


I have a folder of files containing SQL commands or other stuff I need from time to time. I used to open them in my prefered editor and copy the stmts to the clipboard to past it into a remote desktop session.

I would like to have a shortcut that automates the opening and copy step. So that I can select the right file in OPus and just use a shortcut to get the content to the clipboard.

I believe that the CLIPBOARD command cannot do it. But maybe any of the other commands. If someone has an idea please share it with me.


You can use my little SetClip.exe with Opus to do this. There's an example button which does what you want here: