ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Redirect screen output to clipboard

<< < (2/6) > >>

ChalkTrauma:
Ok.. here it is:

ClipCopy

Pretty simple to use:

* This will copy the output from dir /b to clipboard
dir /b | clipcopy

* This will do the same but echo out to stdout at the same time ( like tee )
dir /b | clipcopy -e

* This will dump the text contents of the clipboard to stdout
clipcopy -g

* So you can dump the clipboard contents to a file like this
clipcopy -g > clipboard.txt

* You can also put strings directly on the clipboard like this
clipcopy this is going to the clipboard

Well, that is about all it does, you can type clipcopy -h for usage..

I compiled it with VS 2005 SP1 so you probably need the runtime if you don't already have it, if you do need it you can get it HERE

~enjoy  :Thmbsup:

AbteriX:
Thanks ChalkTrauma this works fantastic  :Thmbsup:
I was able to redirect and paste to editor up to 75.000 lines (on an simple test) .... cb give me 1.000 - 3.000 lines only (512k limit)
(very limited comparison because i compare output lines only instead of real char-count, but that's enough for me to see how it works)

Thank you very much for sharing  :-*  :Thmbsup:

BTW would'nt it be a good idea to distribute your exe with your-last-post-content as ClipCopy.txt ?

blackcat:
Chalk, thanks for sharing  :up:

ChalkTrauma:
No problem at all, I've got a bunch of these little command line apps lying around that do really specific things, glad someone else got some use out of one of them  :D

blackcat:
ChalkTrauma, how about showing on screen at the same time as redirecting to a file?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version