Copy Data to your ClipBoard from command prompt

Subject says it All..

Here I want to present a tip(rather I should a tool) which helps you save some time you spend in copying stuff from command prompt. If you type a command in command prompt(say dir) and want to copy that into email, you generally select the area and choose copy option from command prompt menu. This wastes some of your time.

You can save your time by using a small tool called clip.exe which captures the output and copies it to your clip board. You need to download this tool and place in your system path.

For example, the below command copies the output of "ipconfig /all" to your clip board and your can paste it where ever you want.

One more method to do so....
Or Right click on Console and choose Mark.
Scale cursor on Console and Right click on copy contents to Clipboard.
Now you can either right click to paste on Console AND
Ctrl + V/ Right click and choose paste to put other apps.

The procedure Ramesh shared is world famous and I was my fav till I found clip.exe. I want to make a small improvement here to the process ramesh outlined. After selecting/marking the area you want to copy, just press ENTER(no need to choose the copy option from context menu) and it will send the selected area contents to clip and paste it where ever you want. One disadvantage with this original process is the difficultness in copying the scrolling data(much work for you mouse) and the clip.exe will be very helpful here.

Max_Payne, I know people will hate to place third party utilities into system folder. But this is a MS made utility, comes by default with Windows 2003 box and through resource kit in Windows XP. So I am happily trusting this.

Max_Payne, I know people will hate to place third party utilities into system folder. But this is a MS made utility, comes by default with Windows 2003 box and through resource kit in Windows XP. So I am happily trusting this.

I agree with your point. The practice I follow is, I created a foler c:\pamarths\binaries\ and added it to system path. I place all my thirdparty executables at this location and enjoying the functionality of using it anywhere. Just thought of sharing.

>Another question is that I don't remember never the
>hotkey to do this | symbol... it was useful to post it.