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 ...
18th April 2009, 11:29 PM #1
Copying Command prompt to clipboard
Just thought this tip was so useful had to share with you guys and girls.
Via The Back Room Tech
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
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)
18th April 2009, 11:39 PM #2
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.)
4 Thanks to linkazoid:
actech (19th April 2009), Azhibberd (21st April 2009), DAckroyd (21st April 2009), leco (18th April 2009)
19th April 2009, 12:43 AM #3
I might be missing the point, but why is this better than simply clicking/selecting the section you want to copy and pressing enter?!
19th April 2009, 12:45 AM #4
....Answered my own question... "Mark" isn't on by default! (A bit like the Mark typing this message!)
Ignore me! Useful util!
19th April 2009, 02:39 AM #5
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
19th April 2009, 05:47 AM #6
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
19th April 2009, 03:21 PM #7
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.
2 Thanks to Shielder:
DAckroyd (21st April 2009), mb2k01 (19th April 2009)
19th April 2009, 05:07 PM #8
19th April 2009, 05:48 PM #9
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.
Originally Posted by Shielder
21st April 2009, 01:18 AM #10
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
21st April 2009, 08:39 AM #11
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.
By BatchFile in forum Virtual Learning Platforms
Last Post: 27th January 2009, 12:13 PM
By SimpleSi in forum Windows
Last Post: 3rd March 2008, 03:29 PM
By flexyjerkov in forum Windows
Last Post: 21st December 2007, 10:53 AM
By dan4132 in forum Windows
Last Post: 23rd August 2007, 12:19 PM
By DaveP in forum How do you do....it?
Last Post: 21st March 2007, 12:37 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)