Popular Post russdev Posted April 18, 2009 Popular Post Posted April 18, 2009 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 6
linkazoid Posted April 18, 2009 Posted April 18, 2009 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
mb2k01 Posted April 18, 2009 Posted April 18, 2009 I might be missing the point, but why is this better than simply clicking/selecting the section you want to copy and pressing enter?!
mb2k01 Posted April 18, 2009 Posted April 18, 2009 ....Answered my own question... "Mark" isn't on by default! (A bit like the Mark typing this message!) Ignore me! Useful util!
Michael Posted April 19, 2009 Posted April 19, 2009 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
RabbieBurns Posted April 19, 2009 Posted April 19, 2009 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
MrEprise Posted April 19, 2009 Posted April 19, 2009 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
russdev Posted April 19, 2009 Author Posted April 19, 2009 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
Azhibberd Posted April 20, 2009 Posted April 20, 2009 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
mac_shinobi Posted April 21, 2009 Posted April 21, 2009 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now