Copying command prompt output directly to the Windows clipboard


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 http://www.windowsreference.com/windows-server-2008/copy-command-prompt-output-directly-clipboard-in-windows/

5 Responses to “Copying command prompt output directly to the Windows clipboard”

  1. Andy Parkes Says:

    Awesome!

    Will certainly come in handy

  2. Redirecting Command Prompt Output to the Windows Clipboard Says:

    […] originally came from: thebackroomtech.com Similar Posts How to Build An Information […]

  3. AdamV Says:

    This works natviely in Windows 2003, 2008, Vista, and Windows 7 beta; previously it was only in the Resouce Kits.
    But…you can simply copy clip.exe from Windows 2003 to your XP machine and it works there too.
    See this article (freakily published almost exactly two years before this one, out by one day):
    http://veroblog.wordpress.com/copying-command-line-results-to-the-clipboard-in-vista/

  4. Copying Command prompt to clipboard Says:

    […] Copying Command prompt to clipboard Just thought this tip was so useful had to share with you guys and girls. [quote] 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 its 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 [/quote[ Via The Back Room Tech […]

  5. DanO Says:

    An easier way:

    ipconfig /all>>ipconfig_all.txt
    notepad c:\ipconfig_all.txt


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: