Page 1 of 2 12 Last
  1. #1
    pamarths is offline Beginner
    Join Date
    Nov 2009
    Location
    Hyderabad, India
    Posts
    14

    Default 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.

    Code:
     c:\> ipconfig /all | clip
    You can find the same at my blog : Sitaram's Blog: Copy command output to clip board

    Happy Learning...,
    Sitaram Pamarthi
    Last edited by pamarths; 18th November 2009 at 12:44.

  2. #2
    leofelix is offline Member
    Join Date
    Oct 2008
    Location
    Italy
    Posts
    1,668

    Default

    Welcome pamarths
    The tool you provided looks promising and so your tip.

    Thank you

  3. #3
    riteshtechie's Avatar
    riteshtechie is offline Software Developer
    Join Date
    Mar 2009
    Posts
    880

    Default

    great tip ur blog is at my bookmark list

  4. #4
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,432

  5. #5
    rkonit's Avatar
    rkonit is offline Gold Member
    Join Date
    Jul 2008
    Location
    Pilani, India
    Posts
    1,363

    Default

    Thanks Sitaram !!!

    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.
    Last edited by rkonit; 19th November 2009 at 12:53.

  6. #6
    Max_Payne's Avatar
    Max_Payne is offline Senior Member
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    250

    Default

    Good tip, but Ramesh alternative is better for me. No external tool to put on system folder (I hate this practice) and more intuitive.
    Last edited by Max_Payne; 18th November 2009 at 20:31.

  7. #7
    pamarths is offline Beginner
    Join Date
    Nov 2009
    Location
    Hyderabad, India
    Posts
    14

    Default

    Well, Thanks for all your comments.

    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.

    Comments are welcome.

    Happy Learning..,
    Sitaram Pamarthi

  8. #8
    Max_Payne's Avatar
    Max_Payne is offline Senior Member
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    250

    Default

    Quote Originally Posted by pamarths View Post
    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 already read your tip, my opinion doesn't change also with trusted MS tools to copy manually there. I consider it annoying.

    Another question is that I don't remember never the hotkey to do this | symbol... it was useful to post it.
    Last edited by Max_Payne; 19th November 2009 at 10:26.

  9. #9
    pamarths is offline Beginner
    Join Date
    Nov 2009
    Location
    Hyderabad, India
    Posts
    14

    Default

    >I already read your tip, my opinion doesn't change also with
    >trusted MS tools to copy manually there. I consider it annoying.

    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.

    Sorry! I didn't understand your question clearly. Could you please elaborate.

  10. #10
    Max_Payne's Avatar
    Max_Payne is offline Senior Member
    Join Date
    Nov 2009
    Location
    Italy
    Posts
    250

    Default

    Quote Originally Posted by pamarths View Post

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

    Sorry! I didn't understand your question clearly. Could you please elaborate.
    Code:
    ipconfig /all | clip
    This | symbol... I don't remember how to obtain it from keyboard.

Page 1 of 2 12 Last

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22