+ Post New Thread
Results 1 to 11 of 11
Windows Thread, Copying Command prompt to clipboard in Technical; Just thought this tip was so useful had to share with you guys and girls. Copying command prompt output directly ...
  1. #1

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,930
    Thank Post
    709
    Thanked 552 Times in 367 Posts
    Blog Entries
    3
    Rep Power
    204

    Copying Command prompt to clipboard

    Just thought this tip was so useful had to share with you guys and girls.

    Copying command prompt output directly to the Windows clipboard
    March 26, 2009 — Julie
    How often have you wanted to copy the output of a Windows command from the command prompt, but had to go thought the process of marking and copying the text first?

    Redirecting the command and it’s output is as easy as this:

    ipconfig /all | clip

    will pipe the results of ipconfig into the clipboard, which can then be pasted into notepad with a CTRL-V. How convienent is that! This works in Windows 2003 and higher (sorry, no Windows XP).

    Found at Copy Command prompt output directly Clipboard in Windows | Windows Reference
    Via The Back Room Tech

  2. 6 Thanks to russdev:

    AngryTechnician (19th April 2009), Azhibberd (21st April 2009), DAckroyd (21st April 2009), leco (18th April 2009), linkazoid (18th April 2009), Michael (19th April 2009)

  3. #2
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    650
    Thank Post
    119
    Thanked 90 Times in 74 Posts
    Rep Power
    78
    Very Handy!!!! and it can be used on XP...

    Clip.exe comes with Windows Server 2003, but it also works in Windows XP Professional. Simply copy Clip.exe from the Windows\System32 directory on a Windows Server 2003 system, and then paste it into the Windows\System32 directory on a Windows XP system. (If you don’t have access to Windows Server 2003, you can download a copy of Clip.exe from Daniel Petri’s IT Knowledgebase site.)

    From TechRepublic.com

  4. 4 Thanks to linkazoid:

    actech (18th April 2009), Azhibberd (21st April 2009), DAckroyd (21st April 2009), leco (18th April 2009)

  5. #3
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92
    I might be missing the point, but why is this better than simply clicking/selecting the section you want to copy and pressing enter?!

  6. #4
    mb2k01's Avatar
    Join Date
    Jan 2007
    Posts
    1,138
    Thank Post
    189
    Thanked 230 Times in 195 Posts
    Rep Power
    92
    ....Answered my own question... "Mark" isn't on by default! (A bit like the Mark typing this message!)
    Ignore me! Useful util!

  7. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    I'm pretty sure Mark is enabled by default. I've never had to enable it in XP. From the command prompt, click the C:\ at the top left - Edit > Mark, then Edit > Copy

  8. #6

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    I think the act of clicking Edit then Mark is you enabling it. But that clip.exe is a good idea. Ill add that here. Cheers

  9. #7

    Join Date
    Jun 2008
    Location
    Dawlish/Teignmouth
    Posts
    270
    Thank Post
    45
    Thanked 40 Times in 39 Posts
    Rep Power
    21
    While this tip is a good one, the clipboard can be bypassed altogether by changing the pipe to a ">" which redirects screen output to an output device of your choosing or a text file.

    example: ipconfig /all > ip.txt

    typing the above will redirect the screen output to a text file called "ip.txt" - as long as you put the > symbol and the name of the text file you want to output the results to after the command (and its switches), AFAIK you can use this for almost any command within the Command Shell. This one also works in OS'es as far back as MS-DOS.

  10. 2 Thanks to Shielder:

    DAckroyd (21st April 2009), mb2k01 (19th April 2009)

  11. #8


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    Or >> to imply append.

  12. #9

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,930
    Thank Post
    709
    Thanked 552 Times in 367 Posts
    Blog Entries
    3
    Rep Power
    204
    Quote Originally Posted by Shielder View Post
    While this tip is a good one, the clipboard can be bypassed altogether by changing the pipe to a ">" which redirects screen output to an output device of your choosing or a text file.

    example: ipconfig /all > ip.txt

    typing the above will redirect the screen output to a text file called "ip.txt" - as long as you put the > symbol and the name of the text file you want to output the results to after the command (and its switches), AFAIK you can use this for almost any command within the Command Shell. This one also works in OS'es as far back as MS-DOS.
    But then you might not want it in text file so at that point added extra steps both ways are useful depending on what you are doing.

    Russ

  13. #10
    Azhibberd's Avatar
    Join Date
    May 2008
    Location
    Newbury,Berkshire
    Posts
    169
    Thank Post
    20
    Thanked 21 Times in 20 Posts
    Rep Power
    16
    Cheers for that post russdev, i've always simply used the >C:\abc.txt at the end... Hence why if u ever see my c drive there is allot of random txt files there :P

  14. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,807
    Thank Post
    3,320
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365
    I normally do it something like this ( works in xp as well )

    Copy And Paste Text In Command Prompt

    By enabling quick edit mode when you go into properties and then you can just highlight what you want to copy and left click to copy it and if you want to paste it back into the clipboard you can right click where the flashing mouse cursor is and it should paste it ( Ive not to date had to press enter to get rid of the white area when its highlighted to start with )

    I just enable quick edit mode on all command prompts ie it should prompt you stating if its just this one or all from now on kind of thing.

SHARE:
+ Post New Thread

Similar Threads

  1. Uploading to sharepoint document library via command prompt?
    By BatchFile in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 27th January 2009, 11:13 AM
  2. Pulling copying fails - push copying works
    By SimpleSi in forum Windows
    Replies: 1
    Last Post: 3rd March 2008, 02:29 PM
  3. Web Logon Prompt in ISA 2006
    By flexyjerkov in forum Windows
    Replies: 1
    Last Post: 21st December 2007, 09:53 AM
  4. Logon Prompt Picture Change... (GINA?)
    By dan4132 in forum Windows
    Replies: 3
    Last Post: 23rd August 2007, 11:19 AM
  5. Prevent Student Access To Command Prompt
    By DaveP in forum How do you do....it?
    Replies: 13
    Last Post: 21st March 2007, 11:37 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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