Clip.exe: Clip To Clipboard


This command-line tool copies text from the STDIN stream to the Clipboard. You can then paste the data directly into any application that can receive text from the Clipboard.

To use Clip

Run any program that prints text to STDOUT and pipe the results through Clip. Clip reads from STDIN and copies the text to the Clipboard. Then, using the Paste command, copy the text to any application that can receive text from the Clipboard.

For syntax details, at the command prompt, type:
clip /? or clip -?

Example One

dir | clip

copies a folder listing onto the Clipboard. Next, run WordPad (or a similar text editor) and choose Edit, then Paste from the menu bar to paste the folder listing into WordPad.

Example Two

clip < readme.txt

places a copy of the contents of Readme.txt onto the Clipboard.

Example Three

awk -f gencode.awk input.txt | clip

places the output of the program Gencode.awk onto the Clipboard.

File Required