Copy Command Line Outputs Directly To The Clipboard

Martin Brinkmann
Dec 2, 2008
Updated • Oct 7, 2012
Software, Windows, Windows software
|
5

If you regularly save command line output into text files to process the output further or for record keeping, you might like a solution that copies the output directly to the clipboard to process it even faster this way. One of the best places to find tiny but useful applications is the Donation Coder forum. ClipCopy is a free program I found there that you can use to copy command line output directly to the Windows Clipboard.

ClipCopy is a portable software for the command line that can easily be used to copy output directly to the Windows clipboard. The easiest way to use the software is by appending it to the command that you want to run. To copy the output with Clipcopy one would simply use the command dir | clipcopy.

The output size is not limited at all, which means that it can copy large amounts of data to the Windows clipboard easily. The command will not echo the dir command in the command line. Clipcopy provides an option to do both. This is done by appending the -e parameter to the command. The full command would be dir | clipcopy -e for that.

It is also possible to output clipboard contents to the command line with clipcopy -g which can also be combined with the command to output the clipboard to a file with clipcopy -g > file.txt.

Lastly there is the option to output text to the clipboard with clipcopy text, e.g. clipcopy this is the string that is copied to the clipboard.

If you need to display the available commands, use the clipcopy -h command to do so. This displays all the available options that are at your disposal.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Roshan said on March 14, 2009 at 3:19 pm
    Reply
  2. iampriteshdesai said on December 2, 2008 at 8:01 pm
    Reply

    You seem to have some kind of fetish for Donation Coder, don’t you?
    Every now and then you come up with another “Donation Coder” software, which isn’t hafl as good.

  3. Matt said on December 2, 2008 at 6:23 pm
    Reply

    Interesting! I was just copying some command line output to an email a few minutes ago. This would have saved me a few clicks… and will save me some future clicks! Thanks!

  4. SQrL said on December 2, 2008 at 6:11 pm
    Reply

    I think “clip.exe” was around 1st:
    http://www.labnol.org/software/tutorials/copy-dos-command-line-output-clipboard-clip-exe/2506/

    but they both do the same thing, cept the clip.exe requires less typing (if you truly are going for speed):

    dir | clip
    -vs-
    dir | clipcopy

    …that being said, clipcopy does have the ability to paste from clipboard to dos, but i still find a simple right click (once your dos window is in quickedit mode) to be much much faster…

    thanks for the post anyway.
    keep em’ coming

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.