Redirecting Command Prompt Output to the Windows Clipboard
This week, a coworker gave me this really handy tip. If you do a lot of command line work in Windows, this tip will let you pipe the output of a command line program into the Windows Clipboard. You can then use Windows paste feature to paste the output into Notepad or anywhere else that takes a normal text paste.
Redirecting the command and it’s output is as easy as this:
So maybe you want all the output of “ipconfig /all”
You would enter this on your command line:
ipconfig /all | clip
This works for other commands too. “Dir | clip” is handy for getting a copy of all the contents in a directory. All of the results of ipconfig get piped into the clipboard, which can then be pasted with a CTRL-V. Sweet! This works in Windows 2003 and higher (no Windows XP). I tested it in Windows 7 and it works there as well.
Tip originally came from: thebackroomtech.com
wow, seriously that is a lot more work. Just right click, click mark, and select what you want then hit enter. was that so hard?
No, not hard. Different.